对于一个自然数,若为偶数,则把它除以2,若为奇数,把它除以3加一
总可以得到自然数1,编程序,输入一个自燃数,求经过多少次变换可得到一
人气:116 ℃ 时间:2019-08-19 15:12:45
解答
#include<stdio.h>int main(){\x09\x09int d,t=0;\x09\x09\x09scanf("%d",&d);\x09\x09\x09while(d!=1)\x09{\x09\x09if(d%2) /...
推荐
猜你喜欢
- 因式分解:4a²bc-6ab+32b² (x²+x)²-8(x²+x)+12
- A:Peter is never late for school,__ he?B:___.He always comes on time.(A)is;Yes (B)is;No
- 一首鼓励人奋进的古诗
- (Everyone ,you ,here ,Looking ,is ,for ,there ,and.)用这些英语单词来连词成句
- 有一张厚为0.1mm,假设可以一直对折,请问:对折以后的厚度能否超过珠穆朗玛峰的高度8844?若能
- A; what's the capital of china B; ( ),it's beautiful,too.
- 已知c>2,设命题p:x²+4x+c=0无实根命题q:不等式2x-c>1的解集包含{x|x≥3}
- 发音以元音开头的字母有哪些a e i o u m