Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.ComponentModel.Design;
- using System.Globalization;
- using System.Security.Cryptography;
- namespace SomeExcercises
- {
- class Program
- {
- static void Main(string[] args)
- {
- double socialScholarship = 0.0;
- double excellentScholarship = 0.0;
- double income = double.Parse(Console.ReadLine());
- double averageMark = double.Parse(Console.ReadLine());
- double minimalWage = double.Parse(Console.ReadLine());
- socialScholarship = minimalWage * 0.35;
- excellentScholarship = averageMark * 25;
- if (socialScholarship > minimalWage && averageMark > 4.50)
- {
- Console.WriteLine($"You get Social scholarship {socialScholarship} BGN");
- }
- else if (averageMark >= 5.5)
- {
- Console.WriteLine($"You get a scholarship for excellent results {excellentScholarship} BGN");
- }
- else if (averageMark < 4.50)
- {
- Console.WriteLine("You cannot get a scholarship!");
- }
- else if (socialScholarship > excellentScholarship && averageMark > 5.50)
- {
- Console.WriteLine($"You get Social scholarship {socialScholarship} BGN");
- }
- else
- {
- Console.WriteLine($"You get a scholarship for excellent results {excellentScholarship} BGN");
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment