While Loops
1 / 5
Simple while loops
Input an integer n
.
Generate a string s
of n
asterisks (*
) and print s
.
For example, if n
is 5, print *****
.
Input an integer n
.
Generate a string s
of n
asterisks (*
) and print s
.
For example, if n
is 5, print *****
.