/* с++ */
#include <iostream>
using namespace std;
int main()
{
int sum = 0;
int mult = 1;
for (int i = 10; i <= 99; i++)
sum += i;
mult *= i;
}
cout << "sum: " << sum << endl;
cout << "mult: " << mult << endl;
return 0;
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
/* с++ */
#include <iostream>
using namespace std;
int main()
{
int sum = 0;
int mult = 1;
for (int i = 10; i <= 99; i++)
{
sum += i;
mult *= i;
}
cout << "sum: " << sum << endl;
cout << "mult: " << mult << endl;
return 0;
}
но спасибо за решение :D