+ 1

Please help me complete this program to enable me get an output of y int main() { int x = 9; int y = x % 5; x= ; cout<<x*y ;

27th Sep 2016, 5:16 PM
Ibim
4 Réponses
+ 3
This will print the value of y: int main() { int x = 9; int y = x % 5; x = 1; cout<<x*y; }
27th Sep 2016, 7:34 PM
Zen
Zen - avatar
+ 1
delete x= ; line
27th Sep 2016, 5:37 PM
Dani Tar
Dani Tar - avatar
+ 1
He is right... add the curly brace in the end too...might not be getting your ans due to that.
27th Sep 2016, 6:03 PM
Devansh Kaushik
Devansh Kaushik - avatar
0
if there are also x=9 so why the second last line wrote the X=1 plz explain it
28th Sep 2016, 7:48 AM
Ansh
Ansh - avatar