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
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?
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
Well done! Don't forget this site has tutorials too!