使用Marie Simulator质数

时间:2019-07-03 10:39:53

标签: simulator marie

编写一个接受用户整数的MARIE程序,如果它是质数,则程序将输出1,否则,程序将输出0。

示例:

If the user input is 17, the output would be 1 
If the user input is 2, the output would be 1
If the user input is 15, the output would be 0
If the user input is -2, the output would be 0

0 个答案:

没有答案