Hi All,
I am learning python using Python 3.6.1 by online complier.
I have a doubt about the below pyramid program.
------------------------------------------------
1,It is not running as expected.it seems to be hanging.
2,It is very difficult to align space in loop statement.somewhat confusing it.
I have seen few pyramid programs in the google.com.But i used the above same logic in C language.
Hence,anyone please where is the mistake
Any Suggestions.
Thanks & Regards,
Raj
I am learning python using Python 3.6.1 by online complier.
I have a doubt about the below pyramid program.
------------------------------------------------
I = 1
j = 1
rows = 5
count1 = '*'
while I < 5:
while j < I:
print count1
j = j + 1
I = I + 1------------------------------------------------1,It is not running as expected.it seems to be hanging.
2,It is very difficult to align space in loop statement.somewhat confusing it.
I have seen few pyramid programs in the google.com.But i used the above same logic in C language.
Hence,anyone please where is the mistake
Any Suggestions.
Thanks & Regards,
Raj
