Advertisement
STANAANDREY

ex2 lab LSD

Sep 30th, 2022
671
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.22 KB | None | 0 0
  1. def masa_moleculara(c, h, o):
  2.     return c * 16 + h + o * 12
  3.  
  4. if __name__ == "__main__":
  5.     c = int(input("c="))
  6.     h = int(input("h="))
  7.     o = int(input("o="))
  8.  
  9.     print("masa: %d" % (masa_moleculara(c, h, o)))
  10.    
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement