CPP
cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#include <iostream>
using namespace std;
int main() {
int x;
int y;
cin >> x >> y;
if (x / 50 > y) {
cout << 'Dollars';
}
else {
cout << 'Pesos';
}
return 0;
}
/*
Question
You are in a hat store in Argentina! The prices are listed in US Dollars and Argentinian Pesos. You have both, but you want to make sure you pay the lower price! Do you pay in Dollars or Pesos? The exchange rate is 2 cents for every Peso.
Task
Create a program that takes two prices and tells you which one is lower after conversion.
Input Format
Enter to Rename, Shift+Enter to Preview
OUTPUT
Run