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