0
* * * * * * * * * *
how to print this pattern using while loop in python
5 Respuestas
+ 3
try it with the following code:
# input: number of rows
n = int(input())
i = 0
while i < n:
print(i * '* ')
i = i+1
0
//easy as a for cycle
string sym1="*";
string sym2=" ";
for (int i=1; i<=10; i++) cout << sym1 << sym2;
//if someone know why i cannot use char instead of string please answer to me :)
0
how to solve this with while loop
0
can we do this using two while loops
- 1
//easy as a while (you know is the same thing written different)
int i=1;
string sym1="*";
string sym2=" ";
while (i<=10) {
cout << sym1 << sym2;
i++;
}