Converting a program to accept unsigned integer

后端 未结 1 948
天命终不由人
天命终不由人 2021-01-27 19:09

I have written this program to perform ulam\'s conjecture on an entered integer, however when entering a number such as 38836, it exceeds the bounds for a 16 bit signed integer.

1条回答
  •  时光说笑
    2021-01-27 19:46

    At least in my case, this issue was fixed by using a seperate command that specified the input as unsigned, called GETDEC$. This fixed the issue and allowed the range of integers for unsigned 16 bit, rather than signed.

    0 讨论(0)
提交回复
热议问题