题解 1147: C语言训练-角谷猜想

来看看其他人写的题解吧!要先自己动手做才会有提高哦! 
返回题目 | 我来写题解

筛选

这么简单???

摘要:```c # include int main(void){ int n; scanf("%d",&n); while(n!=1){ if (n%2……

1147: C语言训练-角谷猜想

摘要:解题思路:首先获取输入的数值;使用scanf()函数;根据题目要求,需要在一个循环中依次输出针对该数值的运算过程;首先需要判断输入数是奇数或是偶数;通过if,else if判断进入不同的分支;使用m接……

记录一蛤 T#T

摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>#include<string.h>#include<ctype.h>int even(int a){ ……

循环和if()语句

摘要:解题思路:注意事项:参考代码:     #include<stdio.h>    int main () {         int x,n;         scanf("%d",&x);   

菜鸟解:角谷猜想

摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){   int n,a,b;   scanf("%d",&n);   while(n!=1){    if(n%2……