You are viewing a single comment's thread. Return to all comments →
#include <stdio.h> int main() { int i, a, b=0; scanf("%d",&a); int t[a]; for(i=0;i<a;i++){ scanf("%d",&t[i]); } for(i=0; i<a; i++){ b+=t[i]; } printf("%d",b); return 0; }
Seems like cookies are disabled on this browser, please enable them to open this website
1D Arrays in C
You are viewing a single comment's thread. Return to all comments →