I have an issue about sum of n inputed numbers and sum of 1 to n numbers | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

I have an issue about sum of n inputed numbers and sum of 1 to n numbers

ik still can anyone send me program

24th Nov 2016, 7:04 PM
Darshit Desai
Darshit Desai - avatar
1 Answer
+ 1
You must remember that when you create an array, it starts at zero. So the first element of the array is sum[0] and the last element of the array is sum[n-1]
25th Nov 2016, 10:38 AM
Jan Dickow
Jan Dickow - avatar