0
Write a program that finds the sum of integer number in the interval [1,25]
2 Antworten
+ 1
for (int i=1; i<26; i++)
{
i+=i;
}
0
#include <iostream>
using namespace std;
int main() {
int i,sum=0;
for (int i=1; i<26; i++)
{
sum+=i;
}
cout<<sum;
return 0;
}