Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<iostream>
- using namespace std;
- int main()
- {
- int km;
- cout << "nhap km: ";
- cin >> km;
- if (km == 1)
- {
- cout << "5000";
- }
- else if (km <= 30)
- {
- cout << (km - 1) * 4000 + 5000;
- }
- else
- {
- cout << (km - 30) * 116000 + 5000;
- }
- system("pause");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement