Advertisement
PedroPauloFO

plif plof

Jun 4th, 2014
260
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.35 KB | None | 0 0
  1. # Programacao 1, 2014.1 Pedro Paulo
  2. # Plif Plof
  3.  
  4. num1 = float(raw_input())
  5. num2 = float(raw_input())
  6. num3 = float(raw_input())
  7.  
  8. somatorio = (num1 + num2 + num3)
  9.  
  10. if somatorio % 3 == 0 and somatorio % 5 == 0:
  11.     print "plifplof"
  12.  
  13. elif somatorio % 3 == 0:
  14.     print "plif"
  15.    
  16. elif somatorio % 5 == 0:
  17.     print "plof"
  18.  
  19. else:
  20.     print somatorio
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement