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