我是剛學習c語言的菜鳥,但願你們幫個忙!!謝了!!ide
#include "stdio.h"
void main()
{
int yard,foot,inch;
printf("enter next length");
scanf("%d",yard);
while (yard>=0);{
foot=3yard;
inch=36yard;
printf("\n%d yard=\n",yard);
pirntf("%d foot\n",foot);
printf("%d inch\n",inch);
printf("enter next length");
sxanf("%d",&yard);
}
printf("end\n");
}學習
這裏爲何「foot=3yard; inch=36yard」有錯誤,這裏的意思是,foot變成三倍的yard,inch也同樣。可是運行時老是出錯,不知什麼緣由。我是剛學習c語言的菜鳥,但願你們幫個忙!!謝了!!it