下面程序的输出结果是(   )

#include<iostream>

using namespace std;

int main()

{int a=1,b=-2,c=3;

if(a<b)

if(b<0)c=0;

else c+=1;

cout<<c<<endl;

return 0;

}

欢迎免费使用小程序搜题/刷题/查看解析,提升学历,成考自考报名,论文代写、论文查重请加客服微信skr-web

下面程序的输出结果是(   )

#include<iostream>

using namespace std;

int main()

{int a=1,b=-2,c=3;

if(a<b)

if(b<0)c=0;

else c+=1;

cout<<c<<endl;

return 0;

}

A.

0

B.

2

C.

3

D.

4

正确答案C
访客
邮箱
网址

通用的占位符缩略图

人工智能机器人,扫码免费帮你完成工作


  • 自动写文案
  • 自动写小说
  • 马上扫码让Ai帮你完成工作
通用的占位符缩略图

人工智能机器人,扫码免费帮你完成工作

  • 自动写论文
  • 自动写软件
  • 我不是人,但是我比人更聪明,我是强大的Ai
Top