0

Tell me the output😁

int x=1,total; double y=2; total=x+y*y-x%y+x/y; cout<<total;

28th Oct 2018, 6:06 PM
VIBI NGOY DAVID
VIBI NGOY DAVID - avatar
3 odpowiedzi
+ 2
here you will get an error because of the expression x%y; You can't use any data type like double or float with modulus (%) operator. You can use "x % int(y)" to get an output...!
28th Oct 2018, 7:23 PM
Suraj Jha
Suraj Jha - avatar
+ 1
Hei, do you have Instagram or social media?
17th Nov 2018, 3:12 PM
Sulthan Abdi
Sulthan Abdi - avatar
0
Yep
17th Nov 2018, 10:16 PM
VIBI NGOY DAVID
VIBI NGOY DAVID - avatar