0

Written this code the answer I want to get is zero in both values let me know,where is the mistake :)

https://code.sololearn.com/cSWjSCcuIz85/?ref=app

1st Dec 2019, 5:29 PM
Dipanjan Basu
Dipanjan Basu - avatar
5 ответов
1st Dec 2019, 6:26 PM
Avinesh
Avinesh - avatar
0
What you are trying to do ? Why and how you want? Explain clearly..
1st Dec 2019, 5:59 PM
Jayakrishna 🇮🇳
0
I want to write a program where the user inputs 6 as one input and 4 as another I want to print both the values as 0 so in short no matter what ever the number the user inputs I want to display both the numbers as 0
1st Dec 2019, 6:02 PM
Dipanjan Basu
Dipanjan Basu - avatar
0
Then why you are checking for a>b or b>a. no need of those. Just comment if and else statements.. So comment or remove 6, 8 lines... void zero_small(int &a,int &b) { a=0; b=0; }
1st Dec 2019, 6:05 PM
Jayakrishna 🇮🇳