Choose Category
#include <stdio.h> int main() { int no, sums = 0, c, value; printf("Enter the number of integers you want to add\n"); scanf("%d", &no); printf("Enter %d integers\n",no); for (c = 1; c <= no; c++) { scanf("%d",&value); sums = sums + value; } printf("Sum of given integers = %d\n",sums); return 0; }