Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- public class Program
- {
- public static void Main()
- {
- double earn = double.Parse(Console.ReadLine());
- double score = double.Parse(Console.ReadLine());
- double min = double.Parse(Console.ReadLine());
- double soc = Math.Floor(min*0.35);
- double exellent = Math.Floor(score*25);
- if (score <=4.50 || min<earn)
- {
- Console.WriteLine("You cannot get a scholarship!");
- }
- else if (score <5.50 && score > 4.50)
- {
- if (earn < min )
- {
- Console.WriteLine("You get a Social scholarship {0} BGN", soc);
- }
- }
- else if (score > 5.50)
- { if (soc> exellent )
- {
- Console.WriteLine("You get a Social scholarship {0} BGN", soc);
- }
- else
- Console.WriteLine("You get a scholarship for exellent results {0} BGN", exellent);
- }
- else if (score==5.50)
- { if (soc > exellent )
- {
- Console.WriteLine("You get a Social scholarship {0} BGN", soc);
- }
- else if (soc< exellent || soc == exellent)
- {
- Console.WriteLine("You get a scholarship for exellent results {0} BGN", exellent);
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement