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