不好玩的罚金

来源:互联网 发布: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;
}
0 0