+ 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???
8 ответов
+ 17
I started with c++ then went with c# and later python, but python's kinda tough for me.
+ 5
int nr=4;//numerator
int dr=2;//denominator
int result = nr/dr;
cout<<result;
// output 2
+ 4
ya @bassam
+ 2
is this c++ ?
+ 2
C++ is more specific so its easier to learn for me and thank you @Aman Bhardwaj
+ 1
I like C++ but it's easier for me to start with # before ++. what abt u?
+ 1
If you just want to devide the varible you can use "/"