Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace upr1
- {
- class Program
- {
- static void Main()
- {
- var dohod = double.Parse(Console.ReadLine());
- var sredenUspeh = double.Parse(Console.ReadLine());
- var minimalnaRabotnaZaplata = double.Parse(Console.ReadLine());
- var socialnaStipendiq = 35 * minimalnaRabotnaZaplata / 100;
- var stipendiqZaOtlichenUspeh = sredenUspeh * 25.0;
- if (dohod > minimalnaRabotnaZaplata && sredenUspeh < 5.50)
- Console.WriteLine("You cannot get a scholarship!");
- else if (dohod > minimalnaRabotnaZaplata && sredenUspeh >= 5.50)
- Console.WriteLine("You get a scholarship for excellent results {0} BGN", Math.Floor(stipendiqZaOtlichenUspeh));
- else
- {
- if (dohod < minimalnaRabotnaZaplata && sredenUspeh >= 4.50 && sredenUspeh <= 5.50)
- Console.WriteLine("You get a Social scholarship {0} BGN", Math.Floor(socialnaStipendiq));
- if (dohod < minimalnaRabotnaZaplata && sredenUspeh >= 5.50 && socialnaStipendiq > stipendiqZaOtlichenUspeh)
- Console.WriteLine("You get a Social scholarship {0} BGN", Math.Floor(socialnaStipendiq));
- else if (sredenUspeh >= 5.50 && socialnaStipendiq <= stipendiqZaOtlichenUspeh)
- Console.WriteLine("You get a scholarship for excellent results {0} BGN", Math.Floor(stipendiqZaOtlichenUspeh));
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement