Write program for the sum of series.
Attachments:

Answers
Answered by
1
okay here is the logic part, notify me if you want the entire program
int s = 0;
for(int i = 1;i<=n;i++)
s= s+i;
System.out.println(s);
int s = 0;
for(int i = 1;i<=n;i++)
s= s+i;
System.out.println(s);
Anonymous:
i didnt understand your statement given as s
Similar questions