帮帮忙,看看怎么改能用键盘输入...
/*一罐饼干有若干个饼干,有一些小孩平均分配给小孩是多少?余数是多少?*/#include "stdio.h"
int main(void)
{
int binggan,xiaohai,pingfen,yushu;
printf("binggan de zongshu shi\n");
printf("%d\n",&binggan);
printf("xiaohai de renshu shi\n");
printf("%d\n",&xiaohai);
pingfen=binggan/xiaohai;
printf("xiaohai ping fen de binggan shi:%d",pingfen);
yushu=binggan%xiaohai;
printf("\nfen hou sheng yu de binggan shi:%d",yushu);
getch();