I want a code that show the square and cube of 10 number.0 1 2 3...9 10 ...... show in chart or table ... | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 7

I want a code that show the square and cube of 10 number.0 1 2 3...9 10 ...... show in chart or table ...

🤔

30th Sep 2017, 8:50 PM
Reyhane.a
Reyhane.a - avatar
8 Answers
+ 13
cout << "n\tn^2\tn^3\n"; cout << "------------------------------\n"; for (int i = 0; i <= 10 ; ++i) cout << i << "\t" << i * i << "\t" << i * i * i << endl;
30th Sep 2017, 8:57 PM
Babak
Babak - avatar
+ 5
thank you 🤓
30th Sep 2017, 8:58 PM
Reyhane.a
Reyhane.a - avatar
+ 3
☺🌷⚘🌹😗😀
18th Oct 2017, 6:57 PM
Reyhane.a
Reyhane.a - avatar
+ 2
@auora p. چون این ترم تو دانشگاه دارمcpp میخونم ... . 😟😖😓
18th Oct 2017, 6:51 PM
Reyhane.a
Reyhane.a - avatar
+ 2
😢😭امیدوارم ‌‌‌.....
18th Oct 2017, 6:53 PM
Reyhane.a
Reyhane.a - avatar
+ 1
چرا c++?!?
18th Oct 2017, 5:43 PM
auora p
auora p - avatar
+ 1
خسته نباشی ایشالا پاس کنی😉
18th Oct 2017, 6:52 PM
auora p
auora p - avatar
+ 1
🤗dont worry miss i at ure service in this prog
18th Oct 2017, 6:54 PM
auora p
auora p - avatar