Introducing Radical.sh

Forget Code launches a powerful code generator for building API's

Add 'n' number's using/with Array in C

#include <stdio.h>
 
int main()
{
   int no, sums = 0, c, array[100];
 
   scanf("%d", &no);
 
   for (c = 0; c < no; c++)
   {
      scanf("%d", &array[c]);
      sums = sums + array[c];
   }
 
   printf("Sum = %d\n",sums);
 
   return 0;
}