#include<iostream>
using namespace std;
int main() {
int multiple = 7;
int max = 100 / multiple;
int i = 0;
int sum = 0;
while (i < max) {
cout << multiple * (i + 1) << " ";
sum += multiple * (i + 1);
i++;
}
cout << endl << multiple * i;
cout << endl << sum << endl;
return 0;
}
Comments
Leave a comment