Krasimir_Slavov

Untitled

Sep 22nd, 2018
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.13 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6.  
  7. namespace Scholarship
  8. {
  9. class Program
  10. {
  11. static void Main(string[] args)
  12. {
  13. double income = double.Parse(Console.ReadLine());
  14. double results = double.Parse(Console.ReadLine());
  15. double minSalary = double.Parse(Console.ReadLine());
  16. double scholarshipS = minSalary*35/100;
  17. double scholarshipE = results*25;
  18. if (results >= 5.5)
  19. {
  20. if (scholarshipE >= scholarshipS || income>minSalary)
  21. Console.WriteLine("You get a scholarship for excellent results {0} BGN", Math.Floor(scholarshipE));
  22. else Console.WriteLine("You get a Social scholarship {0} BGN", Math.Floor(scholarshipS));
  23. }
  24. else if (income < minSalary && results > 4.5 )
  25. {
  26. Console.WriteLine("You get a Social scholarship {0} BGN", Math.Floor(scholarshipS)); }
  27.  
  28. else Console.WriteLine("You cannot get a scholarship!");
  29. }
  30. }
  31. }
Advertisement
Add Comment
Please, Sign In to add comment