Azure47

SNZ Lab 1.2

Oct 8th, 2019
427
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.34 KB | None | 0 0
  1. # -*- coding: utf-8 -*-
  2. import math
  3.  
  4. if __name__ == "__main__":
  5.     m = int(input())
  6.     n = int(input())
  7.     x = int(input())
  8.     recnik = {}
  9.  
  10.     for i in range(m, n + 1):
  11.         recnik[i] = (i*i, i*i*i, round(math.sqrt(i), 4))
  12.     if x in recnik:
  13.         print(recnik[x])
  14.     else:
  15.         print("nema podatoci")
  16.     print(recnik)
Advertisement
Add Comment
Please, Sign In to add comment