#include <iostream>
using namespace std;
int main()
{
const int NUM = 7;
int i = 1;
int sum = 0;
while (NUM * i < 100)
sum += NUM * i;
cout << NUM * i << " ";
i++;
}
cout << "\n" << sum;
return 0;
Need a fast expert's response?
and get a quick answer at the best price
for any assignment or question with DETAILED EXPLANATIONS!
Comments