What's wrong with it . every time i try to run this simple program finally it show me 0. Every time! | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

What's wrong with it . every time i try to run this simple program finally it show me 0. Every time!

#include <iostream> using namespace std; int main() { int b,c; cin >> b,c; int a=b/c; cout <<a; return 0; }

27th Feb 2017, 5:30 PM
Collder
2 Answers
+ 1
write cin>> b>> c;
27th Feb 2017, 5:35 PM
Raj Kumar Chauhan
Raj Kumar Chauhan - avatar
0
Thank you very much!!!
27th Feb 2017, 5:38 PM
Collder