wrote in C++

z = a mod 10
a = a div 10
y = a mod 10
x = a div 10
print xyz


**assumptions**
q= 352
z= 2
a= 35
y = 5
x = 3
closed account (48T7M4Gy)
And how can we help you on this occasion?
I have to write this in c++
I don't Know how
Modulus operator: %
Division operator: /
Multiplication operator: *

...

Have you tried at all? What have you got so far?
closed account (48T7M4Gy)
int z = a % 10;
Answer z = 5

Or,

http://lmgtfy.com/?q=35+mod+10+%3D

Now it's your turn
Am totally blank
The division i don't know how to do it in c++
I get it now i will try it thanks
closed account (48T7M4Gy)
Well done! Don't forget this site has tutorials too!
Topic archived. No new replies allowed.