+ 5

division of variables

I can add, subtract, and multiply variables just fine but cant seem to figure out how to divide my already added or multiplied or divided variables. Help???

17th May 2017, 5:26 PM
ETHAN AUSTIN
ETHAN AUSTIN - avatar
7 Réponses
+ 17
I started with c++ then went with c# and later python, but python's kinda tough for me.
17th May 2017, 8:16 PM
Joseph Sai
Joseph Sai - avatar
+ 5
int nr=4;//numerator int dr=2;//denominator int result = nr/dr; cout<<result; // output 2
17th May 2017, 5:15 PM
MR Programmer
MR Programmer - avatar
+ 4
ya @bassam
17th May 2017, 5:22 PM
Vishnu ks
Vishnu ks - avatar
+ 2
is this c++ ?
17th May 2017, 5:16 PM
Bassam Odaymat
Bassam Odaymat - avatar
+ 2
C++ is more specific so its easier to learn for me and thank you @Aman Bhardwaj
18th May 2017, 1:12 PM
ETHAN AUSTIN
ETHAN AUSTIN - avatar
+ 1
I like C++ but it's easier for me to start with # before ++. what abt u?
17th May 2017, 5:24 PM
Bassam Odaymat
Bassam Odaymat - avatar
+ 1
If you just want to devide the varible you can use "/"
19th May 2017, 5:42 AM
Corey
Corey - avatar