-
个人简介
#include<iostream> #include<windows.h> using namespace std; int main(){ cout<<"-----摩斯密码发报机-----"<<"\n"; cout<<"请输入1表示短音,2表示长音"<<"\n"; char c; cin >> c; if(c=='1'){ Beep(1200,200); } if(c=='2'){ Beep(1200,800); } return 0; }
#include using namespace std; int main(){ cout<<"请输入你的身高:"; double w,h,b; cin >> h; cout<<"请输入你的体重:"; cin >> w; b = w/(h*h); if (b<18.5){ cout<<"过轻"; } elif (b<24){ cout<<"健康"; } elif (b<28){ cout<<"超标"; } else { cout<<"肥胖"; } return 0;
}
-
通过的题目
-
最近活动
This person is lazy and didn't join any contests or homework.
题目标签
- 初窥门径
- 7
- 循环结构
- 6
- 顺序结构
- 4
- 略有小成
- 4
- 分支结构
- 2