Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace Loopsk
- {
- 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 socialScoreShip = Math.Floor(minIncome * 0.35);
- double excellentScoreShip = Math.Floor(grade*25);
- if (income<=minIncome && grade>=5.5 && excellentScoreShip>=socialScoreShip)
- {
- Console.WriteLine($"You get a scholarship for excellent result{excellentScoreShip} BGN");
- }
- else if (income <= minIncome && grade >= 5.5
- && excellentScoreShip < socialScoreShip)
- {
- Console.WriteLine($"You get a Social scholarship {socialScoreShip} BGN");
- }
- else if (income>minIncome&&grade>=5.5 )
- {
- Console.WriteLine($"You get a scholarship for excellent result{excellentScoreShip} BGN");
- }
- else if (income<=minIncome && grade>4.5)
- {
- Console.WriteLine($"You get a Social scholarship {socialScoreShip} BGN");
- }
- else
- {
- Console.WriteLine("You cannot get a scholarship!");
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement