我是刚学习c语言的菜鸟,希望大家帮个忙!!谢了!!

 

#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语言的菜鸟,希望大家帮个忙!!谢了!!