You are viewing a single comment's thread. Return to all comments →
long int num[length],sum = 0;
for(int i = 0 ; i< length; i++)
sum += num[i];
Did you meet any difficulties when submitting your code in C ?
Because I have a problem in mine when submitting !!
Just remove all the existing code in the window and copy paste what is posted above.
The existing main function etc make it unnecessarily tougher imo.