返回列表 發帖
  1. #include<iostream>
  2. #include<cstdlib>
  3. using namespace std;
  4. int main()
  5. {
  6.     re:
  7.     int a, b, c;
  8.     cout<<"Please enter three numbers: ";
  9.     cin>>a>>b>>c;
  10.     if (a>b && a>c )
  11.         {
  12.             cout<<a<<"is the biggest"<<endl;
  13.         }
  14.     else if (b>a && b>c )
  15.         {
  16.             cout<<b<<"is the biggest"<<endl;
  17.         }
  18.     else if (c>a && c>b )
  19.         {
  20.             cout<<c<<"is the biggest"<<endl;
  21.         }
  22.   
  23.     goto re;
  24.     system("pause");
  25.     return 0;
  26. }
複製代碼

TOP

返回列表