- #include<iostream>
- #include<cstdlib>
- using namespace std;
- int main()
- {
- int a,b,c;
- cout<<"Please input a number:";
- cin>>a;
- cout<<"Please input another number:";
- cin>>b;
- cout<<"Please input another number again:";
- cin>>c;
- if(!(a>60) && (b>60 || c>80))
- {
- cout<<"Great"<<endl;
- }else
- {
- cout<<"not great"<<endl;
- }
- system("pause");
- return 0;
- }
複製代碼 |