Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace ConsoleApp2
- {
- class Program
- {
- static void Main(string[] args)
- {
- double income = double.Parse(Console.ReadLine());
- double averageGrades = double.Parse(Console.ReadLine());
- double minSalary = double.Parse(Console.ReadLine());
- double schoolarship = minSalary * 0.35;
- double Schoolarship = minSalary * 0.35;
- if (averageGrades >= 4.50 && income < minSalary)
- {
- Console.WriteLine($"You get a Social scholarship {schoolarship} BGN");
- }
- else if (averageGrades >= 5.50)
- {
- Console.WriteLine($"You get a scholarship for excellent results {schoolarship} BGN");
- }
- else if (income > minSalary)
- {
- Console.WriteLine("You cannot get a scholarship!");
- }
- else if (averageGrades >= 5.50 && income < minSalary)
- {
- if (schoolarship > Schoolarship)
- {
- Console.WriteLine("{schoolarship}");
- }
- else if (Schoolarship > schoolarship)
- {
- Console.WriteLine("{Schoolarship}");
- }
- else
- {
- Console.WriteLine("{schoolarship}");
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement