请问下这个小程序为什么无法实现循环
#include "stdio.h"main()
{
int x,y,h,f, k='y';
while(k=='y')
{
printf("enter h,f:");
scanf("%d %d",&h,&f);
x=2*h-f/2;y=f/2-h;
if(x>=0&&y>=0)
printf("h=%d,f=%d\n x=%d,y=%d\n",h,f,x,y);
else
printf("fault\n");
printf("end?y/n\n");
scanf("%c",&k);
}
}