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