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