Номер 1
#include <iostream>
using namespace std;
int main() {
for (int i=10; i<=20; ++i) cout << i*i << " ";
cout << endl;
return 0;
}
Номер 2
for (int i=35; i<=87; ++i)
if(i%7==1||i%7==2||i%7==5) cout << i << " ";
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
Номер 1
#include <iostream>
using namespace std;
int main() {
for (int i=10; i<=20; ++i) cout << i*i << " ";
cout << endl;
return 0;
}
Номер 2
#include <iostream>
using namespace std;
int main() {
for (int i=35; i<=87; ++i)
if(i%7==1||i%7==2||i%7==5) cout << i << " ";
cout << endl;
return 0;
}