1.从严格意义上讲,下列的程序表示的是一个算法吗?为什么?Count = 0while(Count != 5):Count = Count + 2
举一反三
- 下列程序的运行结果是( )。 count = 0 while count < 5: print(count, " is less than 5") count = count + 1 else: print(count, " is not less than 5")
- 请阅读下面的程序: count = 0 while count < 5: print(count, '小于5') if count == 2: break count += 1 else: print(count, "不小于5") 关于上述程序的说法中,描述错误的是
- count = 0 while count < 5: print (count, " 小于 5") count = count + 1 else: print (count, " 大于或等于 5")
- count = 0while count < 5: print( count) count = count + 2print( “Over!")
- 下列程序的输出结果是() num = 27 count = 0 while num > 0: if num % 2 == 0: num /=2 elif num % 3 ==0: num /= 3 else: num -=1 count += 1 print (count)