Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace Stipendiq
- {
- class Program
- {
- static void Main(string[] args)
- {
- double dohod = double.Parse(Console.ReadLine());
- double uspeh = double.Parse(Console.ReadLine());
- double minZaplata = double.Parse(Console.ReadLine());
- double socStipendia = minZaplata * 0.35;
- double otlStipendia = uspeh * 25;
- if (dohod > minZaplata && uspeh < 5.50)
- {
- Console.WriteLine("You cannot get a scholarship!");
- }
- else if (dohod < minZaplata)
- {
- double socStipendiq = Math.Floor(minZaplata * 0.35);
- Console.WriteLine($"You get a Social scholarship {socStipendiq} BGN");
- }
- else if (uspeh >= 5.50)
- {
- double otlStipendiq = Math.Floor(uspeh * 25);
- Console.WriteLine($"You get a scholarship for excellent results {otlStipendiq} BGN");
- }
- else if (socStipendia > otlStipendia)
- {
- double socStipendiq = Math.Floor(minZaplata * 0.35);
- Console.WriteLine($"You get a Social scholarship {socStipendiq} BGN");
- }
- else if (socStipendia < otlStipendia)
- {
- Console.WriteLine($"You get a scholarship for excellent results {Math.Floor(otlStipendia)} BGN");
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement