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