+ 2
What what is floor division
print(“I’m only 13 so please help me”) https://code.sololearn.com/WSLCMm5gY0bP/?ref=app
11 ответов
+ 4
It's division with no remainder.
10 // 2 = 5
5 // 2 = 2
+ 2
Is there any language that has a ceiling division (without the need for a second operation to round up)?
+ 1
thanks
+ 1
Kabilan please tag relevant programming language. As you can see below our answers may vary from programming language to programming language.
Slick This will work in python. But in javascript.
“//” means start of single line comment in javascript. This is like “#” in python.
In javascript.
Math.floor(10/2);
+ 1
Slick I am not good in c 😅. I can't say about c.
+ 1
Haha no worries but yeah it may be closer to js than you think!
In C:
EDIT: // single line
/*...*/ multiline
+ 1
Thanks BeegCat I can always count on you even when I'm terribly wrong! hahaha
+ 1
basically just divide it and then drop the remainder, easy!
0
🇮🇳Vivek🇮🇳 so like in C as well?