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

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

筛选

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

摘要:解题思路:没什么难想的。注意事项:在写判断奇数时要再写个不等于1,不然会无限重复。参考代码:#include <bits/stdc++.h>using namespace std;int main()……

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

摘要:解题思路:不为1持续循环注意事项:参考代码:n = int(input())while n != 1:    if n % 2 == 0:        print("%d/2=%d" %(n,n /……

java--study||O.o

摘要:参考代码:import java.util.Scanner; public class Main {   public static void main(String[] args)    ……

c代码记录之角谷猜想-C

摘要:解题思路:注意事项:参考代码:#include<stdio.h> int deal(int m){     if(m%2==0){         printf("%d/2=%d\n",m,……

C语言训练-角谷猜想

摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std; int main(){    int N;    cin >> N;     while ……