• Kursy
  • Kompilator kodu
  • Dyskusja
  • Cennik
  • Zespoły
Menu
+ 2

How to do a floor division in C++?

c++
7th Apr 2017, 7:55 AM
School Dog
2 odpowiedzi
+ 16
Use type casting as follows : https://code.sololearn.com/cUfb02FD8JXo/?ref=app
7th Apr 2017, 9:52 AM
Shamima Yasmin
Shamima Yasmin - avatar
+ 4
Dividing 2 int variables is floor division only. 7 / 2 = 3, 6 / 2 = 3, 5 / 2 = 2 and so on.
7th Apr 2017, 2:13 PM
Krishna Teja Yeluripati
Krishna Teja Yeluripati - avatar

Często masz takie pytania?

Ucz się bardziej efektywnie, za darmo:

  • Wprowadzenie do Pythona

    7.1M uczących się

  • Wprowadzenie do Java

    4.7M uczących się

  • Wprowadzenie do C

    1.5M uczących się

  • Wprowadzenie do HTML

    7.5M uczących się

Zobacz wszystkie kursy
Popularne dzisiaj
When your heart are gone
1 Votes
Hi im a begneer and i dont understand how to code if anyone whos smart replay
1 Votes
i want correct anwer code
0 Votes
Python question
1 Votes
Where do I find saved code?
1 Votes
I am a beginner here
1 Votes
Hello everyone, umm i downloaded this app today , and I am a bit confused about this
0 Votes
SVG Animation: Container Problems - Any Suggestions?
0 Votes
In data science, which part is easy to learn and which is hard, and why? Which part is most important to data science?
1 Votes
is it too easy to be top 1 in the Earth league
0 Votes