Posts by Danilo Balbo • 59 points
4 posts
-
0
votes6
answers444
viewsQ: Counting multiples of an integer is giving very different values than expected
When receiving two integer numbers, I have to show how many multiples the number n1 (typed 3) has until you reach the n2 (typed 44). The right result should be: The number 3 has 14 multiples smaller…
-
-2
votes2
answers224
viewsQ: Help in college exercise
The statement is: Create a program that receives as input the total amount of a debt (natural number greater than zero) and the maximum amount that the debtor can pay every month (natural number…
-
2
votes2
answers103
viewsQ: Negative print, it only prints the postives
Write a program that reads whole numbers from the standard input until a negative number is reported. At each reading the number read should be written in the standard output. n1 = int(input())…
-
0
votes2
answers1060
viewsQ: Make a program that inverts an integer number with two digits
You must print the inverted number followed by a final line. No need to print the 0 further left. For example, if the number typed is 30, just print 3 and not 03. num=int(input()) if num > 0: a =…