1.4编程基础之逻辑表达式与条件分支

it2022-05-05  207

/* 1.4编程基础之逻辑表达式与条件分支_16三角形判断(9分) http://noi.openjudge.cn/ch0104/16/ */

#include <bits/stdc++.h> using namespace std; int main() { int a,b,c; cin>>a>>b>>c; if( ( (a+b) >c ) && ( (a+c) > b ) ) { if ( (b+c) > a ) { cout<<"yes"<<endl; } } else { cout<<"no"<<endl; } return 0; }

 


最新回复(0)