返回列表 發帖
  1. #include<cstdlib>
  2. #include<iostream>
  3. using namespace std;
  4. int main()
  5. {
  6.    int sho,shu;
  7.    cout<<"請輸入收縮壓=";
  8.    cin>>sho;
  9.    cout<<"請輸入舒張壓=";
  10.    cin>>shu;
  11.    
  12.    if(sho>=120||shu>=80)
  13.    {
  14.     cout<<"血壓過高"<<endl;
  15.    }
  16.    else
  17.    {
  18.     cout<<"血壓正常 "<<endl;
  19.    }
  20.    system("pause");
  21.    return 0 ;
  22.    
  23.    
  24. }
複製代碼

TOP

返回列表