Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- double dohodlv = double.Parse(Console.ReadLine());
- double sredenuspeh = double.Parse(Console.ReadLine());
- double minrabzaplata = double.Parse(Console.ReadLine());
- double scholarship = 0;
- double otlichen = 0;
- if (dohodlv < minrabzaplata && sredenuspeh > 4.50)
- {
- scholarship = minrabzaplata * 0.35;
- }
- if (sredenuspeh >= 5.50)
- {
- otlichen = sredenuspeh * 25;
- }
- scholarship = Math.Floor(scholarship);
- otlichen = Math.Floor(otlichen);
- if (scholarship == 0 && otlichen == 0)
- {
- Console.WriteLine($"You cannot get a scholarship!");
- }
- else if (scholarship > otlichen)
- {
- Console.WriteLine($"You get a Social scholarship {scholarship} BGN");
- }
- else
- {
- Console.WriteLine($"You get a scholarship for excellent results {otlichen} BGN");
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement