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 averagеSuccess = double.Parse(Console.ReadLine());
- double minWage = double.Parse(Console.ReadLine());
- double succsess = 0;
- double bScholarship = Math.Floor(succsess * 25);
- double sScholarship = Math.Floor(0.35 * minWage);
- if (income < minWage && succsess >= 4.5)
- {
- Console.WriteLine($"You get a Social scholarship {sScholarship} BGN");
- }
- else if (income >= minWage && succsess < 5.5)
- {
- Console.WriteLine("You cannot get a scholarship!");
- }
- else if(averagеSuccess <= 4.50)
- {
- Console.WriteLine("You cannot get a scholarship!");
- }
- else if (succsess >= 5.5)
- {
- Console.WriteLine($"You get a scholarship for excellent results {bScholarship} BGN");
- }
- else if(averagеSuccess > bScholarship)
- {
- Console.WriteLine($"You get a Social scholarship {sScholarship} BGN");
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement