小照灯的博客public class TestDemo1{ public static void func(int num){ for (int i = 31; i >=1 ; i-=2) { System.out.print(((num>>i) & 1) + " "); } System.out.println(); for (int i = 30; i >=0 ; i-=2...
小白也热爱敲dm的博客namespace ConsoleApp2 { class Program { static void Main(string[] args) { Console.WriteLine("请输入正整数"); int S = Convert.ToInt32(Console.ReadLine()); Console.Clear();//清除以上内容 .
chen_XiaoFang的博客Console.WriteLine("输入一个数"); int i = Convert.ToInt32(Console.ReadLine()); int count = 0; while (true) { count++; if (i % 2 == 0) { i /= 2; } else if (i == 1) { Console.WriteLine("在执行了...