#includevoid main(){int magic=68,a,b,c;printf("Please input
来源:学生作业帮 编辑:作业帮 分类:综合作业 时间:2024/08/29 04:48:27
#include
void main()
{
int magic=68,a,b,c;
printf("Please input a number:");
scanf("%d",&a);
if(a!=magic)
scanf("%d",&b);
if(b!=magic)
printf("Wrong!\n");
scanf("%d",&c);
if(c==magic)
printf("Right!\n");
else if(c>=magic)
printf("Too high!\n");
else
printf("Too low!\n");
else
printf("Right!\n");
else
printf("Right!\n");
}
void main()
{
int magic=68,a,b,c;
printf("Please input a number:");
scanf("%d",&a);
if(a!=magic)
scanf("%d",&b);
if(b!=magic)
printf("Wrong!\n");
scanf("%d",&c);
if(c==magic)
printf("Right!\n");
else if(c>=magic)
printf("Too high!\n");
else
printf("Too low!\n");
else
printf("Right!\n");
else
printf("Right!\n");
}
#include
void main()
{
int magic=68,a,b,c;
printf("Please input a number:");
scanf("%d",&a);
if(a!=magic)
scanf("%d",&b);
if(b!=magic)
printf("Wrong!\n");
scanf("%d",&c);
if(c==magic)
printf("Right!\n");
else if(c>=magic)
printf("Too high!\n");
else
printf("Too low!\n");
/*else
printf("Right!\n");
else
printf("Right!\n");*/
}
还是看不明白你的程序是什么意思,不过错误在于最下面的两个else没有配对的if,所以会出现错误,注释掉就可以了,你可以把自己程序的意思表达一下,然后再修改.
void main()
{
int magic=68,a,b,c;
printf("Please input a number:");
scanf("%d",&a);
if(a!=magic)
scanf("%d",&b);
if(b!=magic)
printf("Wrong!\n");
scanf("%d",&c);
if(c==magic)
printf("Right!\n");
else if(c>=magic)
printf("Too high!\n");
else
printf("Too low!\n");
/*else
printf("Right!\n");
else
printf("Right!\n");*/
}
还是看不明白你的程序是什么意思,不过错误在于最下面的两个else没有配对的if,所以会出现错误,注释掉就可以了,你可以把自己程序的意思表达一下,然后再修改.
#includevoid main(){int magic=68,a,b,c;printf("Please input
#includeint main(){int a,b,c,max;printf("please input a,b,c:
#includevoid main(){int max(int x,int y);int a,b,c;scanf("%d
求pi问题c语言#include#includevoid main(){ int a, b ; double pi=0;
void main() { int a,b,c; printf("please enter 3 numbers:");
main() { int number; printf("input a number:\n"); scanf("%d"
main(){int a,n,sum=0;printf("Input data:");scanf("%d",&a
#includevoid main(){int a,b,c,max,min;for(a=0;ac>b){max=a;mi
C语言中!a怎么理解#includevoid main(){ int a=4;int b=5;int x=2; int
求下列程序输出结果#includevoid main(){int a=3;printf("%d\n",(a+=a-=a*
C语言求素数和#include#includevoid main(){int a,b,c,d,sum;scanf("%d
#include main() { int a=4,b=7,c=5:int d1;d1=(ab--); printf("