Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def first():
- num1 = int(input())
- num2 = int(input())
- num3 = int(input())
- print(num1 + num2 + num3)
- def second():
- a = int(input())
- b = int(input())
- h = int(input())
- print(0.5 * (a + b) * h)
- def third():
- n = int(input())
- k = int(input())
- print(k//n)
- print(k%n)
- def fourth():
- n = int(input())
- h = (n//60) % 24
- m = (n%60)
- print(h)
- print(m)
- def fifth():
- name = input()
- print("Привет, " +name+ "!")
- def sixth():
- num1 = int(input())
- num2 = num1 + 1
- num3 = num1 - 1
- print("The next number for the number " + str(num1) + " is "+str(num2))
- print("The previous number for the number " + str(num1) + " is "+str(num3))
- sixth()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement