write a program that will calculate the sum of any 25 random number
Answers
Answered by
0
Answer:
include <iostream>
using namespace std;
int main()
{
int n, sum = 0;
cout << "Enter a positive integer: ";
cin >> n;
for (int i = 1; i <= n; ++i) {
sum += i;
}
cout << "Sum = " << sum;
return 0;
}
Explanation:
MARK ME AS BRAINLIEST ♥️
Similar questions