0
What's wrong with the code??
main() { int sub[5], i, total=0; for(i=0;i<5;i++) { scanf("%d", &sub[i]); total = total + sub[i]; } printf ("Elements are :"); for(i=0;i<5;i++) { printf ("%d\n", sub[i]); } printf ("Total is %d", total); getch(); }
3 Answers



