#include <iostream> using namespace std; int main(){ int now = 1; //tekushee chislo for(size_t i = 0; i < 10; i++) { cout << now << " " << now * now << " " << now * now * now << endl; //vivodim chislo, kvadrat i kub now += i + 1; //nahodim sledujushee } return 0;}
using namespace std;
int main(){
int now = 1; //tekushee chislo
for(size_t i = 0; i < 10; i++)
{ cout << now << " " << now * now << " " << now * now * now << endl; //vivodim chislo, kvadrat i kub
now += i + 1; //nahodim sledujushee
}
return 0;}