I cant understand the quotient and remainder chapter | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
+ 4

# I cant understand the quotient and remainder chapter

21st Mar 2018, 12:49 AM
arkaprabha chakravarty
6 Respostas
+ 16
quotient just divide numbers ignoring decimal places, while 5 / 2 == 2.5, 5 // 2 = 2. And remainder give you remainder of that quotient division 5 // 2 = 2 and remainder is 1
21st Mar 2018, 12:55 AM
Vukan
+ 3
1.25= .5*2(here .5*2=1)+.25 (here .25 is remainder) hence, 1.25 divided by .5, quotient is 2 and .25 isn't divided by .5 so it is remainder. above term is expressed by modulus sign (%),where % shows only remainder,not shows quotient. it is expressed by 5%2 = 1 11%4 = 3 5%3 = 2 3%5 = 3 6%5 = 1 12%7 = 5 2%2 = 0 1.25%.5 = .25
21st Mar 2018, 2:30 AM
šSmileGoodHopeš
+ 1
5%2 -4 |2 1 1 is remainder
1st Apr 2018, 5:54 AM
Tomas Caetano
0
It means that 5//2 it gives the quotient for that particular division
21st Mar 2018, 3:33 PM
Abhaydatta Potluri
0
äøåęÆē”ę¢ä»¶ęØå»é¤ęøļ¼äæēåęøļ¼ę“ęøļ¼ļ¼äøåęÆē”ę¢ä»¶ęØå»åęøļ¼äæēé¤ęøšø
31st Mar 2018, 11:52 PM
é³åÆę¶
0
number=888 hours=60 print(int(number / hours)) print(int(number % hours) ) >>14 >>48
11th Jan 2022, 8:07 PM
Miguel Ćngel Cardona Saavedra
Quente hoje
Help!