using System; namespaceProsose { publicclassFibonacci { staticvoidMain(string[] args) { int a = 7; int again = 0;
while (true) { if (a % 2 == 0) { a /= 2; if (a < 2) { Console.WriteLine("\n" + "一共运行了" + again + "次"); break; } } else { a *= 3; a += 1; } again ++; Console.Write(a + ", ");
using System; namespaceProsose { publicclassFibonacci { staticvoidMain(string[] args) { int k = 0; for(int a = 0; a < 10; a ++) { k ++; for(int b = 1; b < k; b ++) { Console.Write(b + "*" + a + "=" + a*b + " "); } Console.WriteLine(""); } } } }