请高手找一下这个C语言程序的错误,万分感谢。
#include<stdio.h>voidmain(){inta,qw,bw,sw,gw;printf("pleaseenterathousandsnumber:");s...
#include <stdio.h>
void main()
{int a,qw,bw,sw,gw;
printf("please enter a thousands number:");
scanf("%d",&a);
qw=a/1000;
bw=a%1000/100;
sw=a%100/10;
gw=a%100;
printf("the end number:%d\n%d\n%d\n%d",qw,bw,sw,gw);} 展开
void main()
{int a,qw,bw,sw,gw;
printf("please enter a thousands number:");
scanf("%d",&a);
qw=a/1000;
bw=a%1000/100;
sw=a%100/10;
gw=a%100;
printf("the end number:%d\n%d\n%d\n%d",qw,bw,sw,gw);} 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询