#C01L05P04. C01.L05.if语句及其嵌套.练习2

C01.L05.if语句及其嵌套.练习2

看程序,写运行结果。

#include<bits/stdc++.h>
using namespace std;
int main()
{
	int a;
	cin>>a;

	if ( a>0 )
		{ if( a<30) cout<<"yes";   }
	else cout<<"no";

	return 0;
}

当输入 20 ,运行结果是: {{ select(1) }}

  • yes
  • no
  • 没有输出
  • 0

当输入 50 ,运行结果是: {{ select(2) }}

  • yes
  • no
  • 没有输出
  • 0

当输入 0 ,运行结果是: {{ select(3) }}

  • yes
  • no
  • 没有输出
  • 0