If a=50 and b=4 then determine the results of the following: | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

If a=50 and b=4 then determine the results of the following:

1. a+=b 2.a%=b 3.a-=b. 4.a/=b 5.a*=b 6.cout<<100/9 7.float pi =22/7; cout <<pi;

1st Aug 2018, 1:46 PM
Siddhi Agarwal
2 Answers
0
If this is some sort of challenge or quiz then the Q&A section is an inappropriate place for this kind of thing and you should try making a quiz using the quiz factory feature. If it's a genuine question (unlikely) then testing the code using the Sololearn online compiler would be faster than waiting for a response...
1st Aug 2018, 1:52 PM
TurtleShell
TurtleShell - avatar
0
although being relevant it seems plausible that this is your homework. go through the lessons about operators to understand how they work, or write the assignment as a code to output the results of such calculations.
1st Aug 2018, 2:04 PM
seamiki
seamiki - avatar