i want the same character to appear on every line

Write your question here.okay, so the teacher gave us an assignment. in a certain part of it, she asks us that a prompt “>” should be printed for the user and the program waits for the user’s commands. so on each line this prompt must appear before the user starts entering his commands. is there some kind of loop i can use ? and we are limited with for,while,do/while repetition structures.


Topic archived. No new replies allowed.