kalin_inkov

Lecture2ExZad8Ver3ok

Sep 23rd, 2020
767
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. from math import floor
  2.  
  3. income = float(input())
  4. score = float(input())
  5. salary = float(input())
  6. scholarship_soc = floor(0.35 * salary)
  7. scholarship_ex = floor(25 * score)
  8. if income < salary and score > 4.5:
  9.     if score >= 5.50:
  10.  
  11.         if scholarship_ex >= scholarship_soc:
  12.             print(f'You get a scholarship for excellent results {floor(scholarship_ex)} BGN')
  13.         elif scholarship_ex < scholarship_soc:
  14.             print(f'You get a Social scholarship {floor(scholarship_soc)} BGN')
  15.     else:
  16.         print(f'You get a Social scholarship {floor(scholarship_soc)} BGN')
  17. elif score >= 5.50:
  18.     print(f'You get a scholarship for excellent results {floor(scholarship_ex)} BGN')
  19. else:
  20.     print("You cannot get a scholarship!")
  21.  
RAW Paste Data