0

What's the prolem? Test 2 failet

#include <iostream> using namespace std; int main() { int peso,dollar; double coll; cin>>peso,dollar; coll=peso/50; if (coll>=dollar) { cout<<"Dollars"<<endl; } else{ cout<<"Pesos"<<endl; } return 0; }

22nd Feb 2020, 8:14 PM
Hl1v
Hl1v - avatar
3 Respostas
+ 2
You input is incorret. The correct is: cin>>peso>>dollar;
22nd Feb 2020, 8:28 PM
Cmurio
Cmurio - avatar
0
Thank you
22nd Feb 2020, 8:29 PM
Hl1v
Hl1v - avatar
- 1
1 dollar = 50 pesos
22nd Feb 2020, 8:24 PM
Hl1v
Hl1v - avatar