( 7 )有以下程序#include <stdio.h>main (){ int
2024-04-08 32次 计算机二级 反馈错误 加入收藏 正确率 : 100%
题目内容:
[试题]( 7 )有以下程序
#include <stdio.h>
main ()
{ int a=1,b=2,c=3,d=0;
if ( a==1 )
if ( b!=2 )
if ( c==3 ) d=1;
else d=2;
else if ( c!=3 ) d=3;
else d=4;
else d=5;
printf ( " %d/n " ,d ) ;
}
程序运行后的输出结果是 ( 7 ) 。
本题链接: