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