I cant understand the quotient and remainder chapter | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula gr√°tis
+ 4

I cant understand the quotient and remainder chapter

21st Mar 2018, 12:49 AM
arkaprabha chakravarty
arkaprabha chakravarty - avatar
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
Vukan - avatar
+ 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ūüďą
ūüďąSmileGoodHopeūüďą - avatar
+ 1
5%2 -4 |2 1 1 is remainder
1st Apr 2018, 5:54 AM
Tomas Caetano
Tomas Caetano - avatar
0
It means that 5//2 it gives the quotient for that particular division
21st Mar 2018, 3:33 PM
Abhaydatta Potluri
Abhaydatta Potluri - avatar
0
šłÄŚÄčśėĮÁĄ°śĘĚšĽ∂ść®ŚéĽť§ėśēłÔľĆšŅĚÁēôŚēÜśēłÔľąśēīśēłÔľČÔľõšłÄŚÄčśėĮÁĄ°śĘĚšĽ∂ść®ŚéĽŚēÜśēłÔľĆšŅĚÁēôť§ėśēłūüėł
31st Mar 2018, 11:52 PM
ťô≥ŚĮĆśÖ∂
ťô≥ŚĮĆśÖ∂ - avatar
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
Miguel √Āngel Cardona Saavedra - avatar