Computer Science, asked by akashsen1360, 9 months ago

Write an algorithm to print your name five times

Answers

Answered by subbpavar
4

Answer

  1. Include the required header files and declare the variable int i and char name.
  2. Get the name from the user.
  3. Using for loop [ (i=0;i<=5;i++) ] set the test condition up to 5
  4. State the print function to display the name inside the loop.
  5. Stop the process.

Explanation:

Loops are best way to repeat the statement or condition for specified times.

[ (i=0;i<=5;i++) ]  is condition to repeat the name five times.

Answered by rubymadumitha
1

Answer:

write an algorithm to print your name 100times

Similar questions