I'm writing a program that continuously accepts a number and stops only if the last input number is twice the previous number

后端 未结 0 1807
长发绾君心
长发绾君心 2020-12-09 16:37

If I input:

1 then 3 then 6, the program still runs but if I did 1 then 3 then 6 then 12 it will terminate.

Here\'s my code:


using System;

nam         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题