Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- public class Program
- {
- public static void Main()
- {
- double moneyIncome = double.Parse(Console.ReadLine());
- double averageScore = double.Parse(Console.ReadLine());
- double minSalary = double.Parse(Console.ReadLine());
- double socialScholarship = Math.Floor(minSalary * 0.35);
- double scoreScholarship = Math.Floor(averageScore * 25);
- if (moneyIncome >= minSalary && averageScore < 5.50)
- {
- Console.WriteLine("You cannot get a scholarship!");
- }
- else if (averageScore <= 4.50)
- {
- Console.WriteLine("You cannot get a scholarship!");
- }
- else if (socialScholarship > scoreScholarship)
- {
- Console.WriteLine($"You get a Social scholarship {socialScholarship} BGN");
- }
- else if (averageScore >= 5.50)
- {
- Console.WriteLine($"You get a scholarship for excellent results {scoreScholarship} BGN");
- }
- else
- {
- Console.WriteLine($"You get a Social scholarship {socialScholarship} BGN");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement