Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace Scholarships
- {
- class Program
- {
- static void Main(string[] args)
- {
- double Income = double.Parse(Console.ReadLine());
- double Success = double.Parse(Console.ReadLine());
- double Salary = double.Parse(Console.ReadLine());
- double socialScholarship = Math.Round(Salary * 0.35);
- double successScholarship = Math.Floor(Success * 25);
- double scholarship = 0;
- if (Income > Salary)
- {
- Console.WriteLine("You cannot get a scholarship!");
- }
- if (Success < 4.50)
- {
- Console.WriteLine("You cannot get a scholarship!");
- }
- //if (Income < Salary)
- //{
- //scholarship = socialScholarship;
- //Console.WriteLine($"You get a Social scholarship {scholarship} BGN");
- //}
- if (socialScholarship > successScholarship)
- {
- scholarship = socialScholarship;
- Console.WriteLine($"You get a Social scholarship {scholarship} BGN");
- }
- else if (Success > 5.50)
- {
- scholarship = successScholarship;
- Console.WriteLine($"You get a scholarship for excellent results {scholarship:F2} BGN");
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement