SUM OF 6 NUMBERS

Description:

Print the sum of 6 numbers using array and pointers Test Case 1 Input (stdin) 1 2 3 4 5 6 Expected Output 21 Test Case 2 Input (stdin) 1 1 1 2 2 2 Expected Output 9

Program :

#include <stdio.h>


int main()


{


int a,b,c,d,e,f;


  scanf ("%d%d%d%d%d%d",&a,&b,&c,&d,&e,&f);


  printf ("%d",(a+b+c+d+e+f));


    return 0;


}