Advertisement
Guest User

Untitled

a guest
Nov 8th, 2019
156
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.77 KB | None | 0 0
  1. def first():
  2.     num1 = int(input())
  3.     num2 = int(input())
  4.     num3 = int(input())
  5.  
  6.     print(num1 + num2 + num3)
  7.  
  8.  
  9. def second():
  10.     a = int(input())
  11.     b = int(input())
  12.     h = int(input())
  13.  
  14.     print(0.5 * (a + b) * h)
  15.  
  16. def third():
  17.     n = int(input())
  18.     k = int(input())
  19.  
  20.     print(k//n)
  21.     print(k%n)
  22.  
  23.  
  24. def fourth():
  25.     n = int(input())
  26.     h = (n//60) % 24
  27.     m = (n%60)
  28.  
  29.     print(h)
  30.     print(m)
  31.  
  32.  
  33. def fifth():
  34.  
  35.     name = input()
  36.  
  37.     print("Привет, " +name+ "!")
  38.  
  39.  
  40. def sixth():
  41.  
  42.     num1 = int(input())
  43.     num2 = num1 + 1
  44.     num3 = num1 - 1
  45.  
  46.     print("The next number for the number " + str(num1) + " is "+str(num2))
  47.     print("The previous number for the number " + str(num1) + " is "+str(num3))
  48.  
  49. sixth()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement