Write an algorithm to compute and print the quotient and remainder of two numbers a and b .And also find flowchart and algorithm | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
0

Write an algorithm to compute and print the quotient and remainder of two numbers a and b .And also find flowchart and algorithm

guys pls I want to know this answer

3rd Sep 2017, 5:14 AM
kailu
kailu - avatar
2 Réponses
+ 3
function = divmod OK, any more standard library function questions?
3rd Sep 2017, 12:37 PM
Amaras A
Amaras A - avatar
+ 1
a = int(input("Enter the first number: ")) b = int(input("Enter the second number: ")) print(a / b) # prints the quotient of a divided by b print(a % b) # prints the remainder of a divided by b
3rd Sep 2017, 5:28 AM
ChaoticDawg
ChaoticDawg - avatar