Write an algorithm to print your name five times
Answers
Answered by
4
Answer
- Include the required header files and declare the variable int i and char name.
- Get the name from the user.
- Using for loop [ (i=0;i<=5;i++) ] set the test condition up to 5
- State the print function to display the name inside the loop.
- 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
1
Answer:
write an algorithm to print your name 100times
Similar questions