河南成教 / C 语言程序设计
[程序题]
读下列程序,写出程序的运行结果。
#include
int main()
{
int a=2,b=3,c;
c=a;
if(a>b)
c=1;
else if(a==b)
c=0;
else
c=-1;
printf("%d
",c);
return 0;
}
输出:
[程序题]
读下列程序,写出程序的运行结果。
#include
int main()
{
int a=2,b=3,c;
c=a;
if(a>b)
c=1;
else if(a==b)
c=0;
else
c=-1;
printf("%d
",c);
return 0;
}
输出:
参考答案:
佳题速递: