C語言改錯救救孩子吧[face]monkey2:019.png[/face]

CSDN問答 2022-01-07 06:02:47 阅读数:313

救救 孩子 face monkey2 monkey
C語言改錯救救孩子吧[face]monkey2:019.png[/face]



采納答案:

scanf("%f",&i);

printf("The produce of %d and %d is %d\n",x,y,z);

sumOfNumbers = lsum + $start;

if( number<= largest ) number ++;

unsigned counter = 0; while(counter<=10) counter++;這個題目給出的是沒有問題的,可以運行的。主要是不知道這句話要得到什麼結果。改了一個運算符



其他答案2:
a) scanf("%f", &int_0); //函數名寫錯, 缺少% &號, 變量名不能為關鍵字intb) printf("The product of %d and %d is %d\n", x, y); // \n應該寫在雙引號裏面c) sumOfNumbers = sum1 + $start; //變量名不能以數字開頭 還有 左邊為變量名 = 右邊為錶達式d) if(number <= largest) number++; // =< 是什麼, -+又是神馬e) unsigned counter = 0; while(count<= 10) counter--; //這裏應該是想考unsigned的取值範圍0~65535 那就counter++吧 

其他答案3:

a) int a;scanf("%d",&a);

b)printf("The product of %d and %d is %d\n",x,y,z);

c)sumOfNumbers = lsum + start;

d)if(number<=largest) number++;

e)unsigned int counter =0;while(counter < =10) counter--;

 

版权声明:本文为[CSDN問答]所创,转载请带上原文链接,感谢。 https://gsmany.com/2022/01/202201070602473688.html