不好玩的罚金
来源:互联网 发布:it行者 唐吉 编辑:程序博客网 时间:2024/04/28 20:40
#include<bits/stdc++.h>
using namespace std;
int main()
{
int n,m;
cin>>n>>m;
cout<<"Enter the speed limit: Enter the recorded speed of the car: ";
if(m-n<=0)
cout<<"Congratulations, you are within the speed limit";
if(m-n>0&&m-n<=20)
cout<<"You are speeding and your fine is $ 100";
if(m-n>20&&m-n<=30)
cout<<"You are speeding and your fine is $ 270";
if(m-n>30)
cout<<"You are speeding and your fine is $ 500";
return 0;
}
using namespace std;
int main()
{
int n,m;
cin>>n>>m;
cout<<"Enter the speed limit: Enter the recorded speed of the car: ";
if(m-n<=0)
cout<<"Congratulations, you are within the speed limit";
if(m-n>0&&m-n<=20)
cout<<"You are speeding and your fine is $ 100";
if(m-n>20&&m-n<=30)
cout<<"You are speeding and your fine is $ 270";
if(m-n>30)
cout<<"You are speeding and your fine is $ 500";
return 0;
}
0 0
- 不好玩的罚金
- 1274 不好玩的罚金
- wikioi不好玩的罚金c
- 罚金与罚款的区别 ?
- 拿命跟技术玩,真的不好玩
- 这儿不好玩
- 工作后 不好玩
- CF 215D 贪心 交罚金的问题
- 这边博客一点都不好玩了
- 唉 无聊什么都不好玩
- 女生写的如何追mm(玩计算机的都不好找老婆,所以得学学啊)
- Axure玩得不好?别怕!6周让你的Axure水平达到腾讯产品招聘要求
- 一些不好的生活习惯
- 不好不坏的心情
- 我的命不好
- 中午做的不好
- 中午做的不好
- 心情不好的时候
- 循环有序数组最小值练习
- canvas demo以及小结
- 每日练习
- 算法竞赛入门经典ch3_ex7回文词
- Android下的一些调试手段(含kernel调试办法)
- 不好玩的罚金
- Windows Hook之动态链接库
- 安卓开发环境安装
- 排序字符串
- stackoverflow打开速度慢的一种解决方法
- java之重要知识
- Linux档案与目录管理
- LVM-逻辑卷
- LeetCode 461 Hamming Distance