啊哈磊_编程从这里起步
标题:
运行成功,但一直是黑屏的,why?????
[打印本页]
作者:
lin&
时间:
2019-7-2 11:54
标题:
运行成功,但一直是黑屏的,why?????
#include <stdio.h>
#include <stdlib.h>
int main()
{
int a,b,c,d;
scanf("%d %d %d",&a,&b,&c);
if(a>b)
{
d=a;
}
else
{
d=b;
}
if(d<c)
{
d=c;
}
printf("%d",d);
system("pause");
return 0;
}
复制代码
作者:
小陆749
时间:
2019-7-29 08:35
你这代码是对的,你需要输入数字呀
#include <stdio.h>
#include <stdlib.h>
int main()
{
int a,b,c,d;
scanf("%d %d %d",&a,&b,&c);
//主动输入数字
if(a>b)
{
d=a;
}
else
{
d=b;
}
if(d<c)
{
d=c;
}
printf("%d",d);
system("pause");
return 0;
}
复制代码
你的代码我试了,好使:)
欢迎光临 啊哈磊_编程从这里起步 (https://bbs.codeaha.com/)
Powered by Discuz! X3.2