Question: Q1: while Loop Demo: Write a console program using do while loop to print odd numbers between 0- 20. Inside the same program use for

Q1: while Loop Demo: Write a console program using do while loop to print odd

numbers between 0-

20. Inside the same program use for loop to print even numbers in

the same range.

Q2: Use 2 for loops in a console program to print the square of 36

asterisks (*).

Q3: Modify the answer of the Q1 to write the output to a text file.

Q4: Write a file read program that read square of 9 asterisks (*) from file name

nine_asterisk.txt and writes it back to file named output.tx

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!