max = 5 min = 1 i = 0 while max >= min: while i < max: print "*" i++ i = 0 max -= 1 raw_input("Press any key to continue.")