Use python // math in other languages? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Use python // math in other languages?

I have a python code here: print (2//2) I want to do it in other languages. How do you do it?

9th Nov 2018, 5:14 AM
Potato Hacker
Potato Hacker - avatar
1 Answer
+ 1
// Is floor division operator You can always able to use floor() function at the result. But it depends on the language itself forexample in C / behave like // depends on the datatype
9th Nov 2018, 5:34 AM
Taste
Taste - avatar