- #include<iostream>
- #include<cstdlib>
- using namespace std;
- int main()
- {
- re:
- int a, b, c;
- cout<<"Please enter three numbers: ";
- cin>>a>>b>>c;
- if (a>b && a>c )
- {
- cout<<a<<"is the biggest"<<endl;
- }
- else if (b>a && b>c )
- {
- cout<<b<<"is the biggest"<<endl;
- }
- else if (c>a && c>b )
- {
- cout<<c<<"is the biggest"<<endl;
- }
-
- goto re;
- system("pause");
- return 0;
- }
複製代碼 |