Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace Scholarship
- {
- class Program
- {
- static void Main(string[] args)
- {
- double income = double.Parse(Console.ReadLine());
- double midScore = double.Parse(Console.ReadLine());
- double minSelary = double.Parse(Console.ReadLine());
- double socialScholarship = Math.Floor(minSelary*0.35);
- double Highscholarship = Math.Floor(midScore * 25);
- if (income < minSelary && midScore >= 4.5)
- {
- Console.WriteLine($"You get a Social scholarship {socialScholarship} BGN");
- }
- else if (midScore >= 5.5)
- {
- Console.WriteLine($"You get a scholarship for excellent results {Highscholarship} BGN");
- }
- else if (income < minSelary && midScore >= 5.5)
- {
- if (socialScholarship > Highscholarship)
- {
- Console.WriteLine($"You get a Social scholarship {socialScholarship} BGN");
- }
- else if(Highscholarship>=socialScholarship)
- {
- Console.WriteLine($"You get a High scholarship {Highscholarship} BGN");
- }
- }
- else
- {
- Console.WriteLine("You cannot get a scholarship!");
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement