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;
- namespace Scolarship
- {
- 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 social = minIncome * 0.35;
- double notSocial = grade * 25;
- if (grade >= 5.50)
- {
- if (income < minIncome && social > notSocial)
- {
- Console.WriteLine($"You get a Social scholarship {Math.Floor(social)} BGN");
- }
- else
- {
- Console.WriteLine($"You get a scholarship for excellent results {Math.Floor(notSocial)} BGN");
- }
- }
- else if (grade > 4.50 && income < minIncome)
- {
- Console.WriteLine($"You get a Social scholarship {Math.Floor(social)} BGN");
- }
- else
- {
- Console.WriteLine("You cannot get a scholarship!");
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement