i have to create program that prints a pattern of "-" and "*" using a for loop and a boolean flag. this is my first programming assignment and it is really confusing to me!
i have to ask the user to put in a number of rows and then it prints the patter. so putting 5 would give me "-*-*-". i already know how to use the cout and cin to get that information. ij ust need help with the loop