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