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