2. Write the below given program using for, while and do..while.
Try the programs on Bluej and copy into the document with proper heading. Program:
Write a program to print the following using loop. 111
248
3 9 27
4 16 64 5 25 125
Share
2. Write the below given program using for, while and do..while.
Try the programs on Bluej and copy into the document with proper heading. Program:
Write a program to print the following using loop. 111
248
3 9 27
4 16 64 5 25 125
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Verified answer
Answer:
output:
1 1 1
2 4 8
3 9 27
4 16 64
5 25 125