Mitrezzz

СНЗ Лаб 1 Таблица на квадрати, кубови и корени

Nov 3rd, 2019
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.43 KB | None | 0 0
  1. if __name__ == "__main__":
  2.     m = int(input())
  3.     n = int(input())
  4.     x = int(input())
  5.     #vasiot kod pisuvajte go tuka
  6.    
  7.     tablica = {}
  8.    
  9.     for broj in range(m,n+1):
  10.         tablica[broj] = (broj*broj, broj**3, broj**0.5)
  11.    
  12.     if(x<m) or (x>n):
  13.         print('nema podatoci')
  14.     else:
  15.         print(tablica[x])
  16.    
  17.     print(tablica)
  18.  
  19. """
  20. Sample input
  21. 100
  22. 1
  23. 10
  24. Sample output
  25. nema podatoci
  26. {}
  27. """
Add Comment
Please, Sign In to add comment