代码贩子、的博客 //应该是20000000000,但是实际的结果输出的为一个负数 //那是因为计算的时候溢出了 int moeny = 10_0000_0000; int years = 20; int total = moeny*years; System.out.println(total); //虽然发生了自动转换还是...
写的代码不能跑的小黄的博客法一:使用while #include int main() { int a; int b; int c; scanf("%d%d", &a, &b); while (c = a % b)//当不可以整除!=0,就直接运行{};当可整除=0 直接打出跳出循环打出b { a = b;//为后续循环铺垫,若第一步...