Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- class Program
- {
- static void Main()
- {
- double income = double.Parse(Console.ReadLine());
- double averageSuccess = double.Parse(Console.ReadLine());
- double minimalSalary = double.Parse(Console.ReadLine());
- double excellent = Math.Floor(averageSuccess * 25);
- double social = Math.Floor(minimalSalary * 0.35);
- if (averageSuccess >= 5.50)
- {
- if (excellent <= social && income < minimalSalary)
- {
- Console.WriteLine("You get a Social scholarship {0} BGN", social);
- }
- else
- Console.WriteLine("You get a scholarship for excellent results {0} BGN", excellent);
- }
- else if (income < minimalSalary && averageSuccess > 4.50 )
- {
- Console.WriteLine("You get a Social scholarship {0} BGN", social);
- }
- else
- {
- Console.WriteLine("You cannot get a scholarship!");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement