且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如果循环,则为2的幂

更新时间:2023-11-30 18:56:58

将长整数设置为1 。

Set a long integer to 1.

写一个执行50次的'for'循环。每次循环,将你的整数乘以2并显示结果。

Write a 'for' loop that executes 50 times. Each time through the loop, multiply your integer by 2 and display the result.

我们不应该在这个论坛上做家庭作业,所以这和我能告诉你的一样多。如果你遇到困难,我们可以(可能)帮助你解决代码中的特定问题。

We are not supposed to do homework assignments on this forum, so that's about as much as I can tell you. Have a go, and if you get stuck we can (might) help with specific problems in your code.