Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace Demo
- {
- class Program
- {
- static void Main(string[] args)
- {
- double profit = Double.Parse(Console.ReadLine());
- double grade = Double.Parse(Console.ReadLine());
- double minIncome = Double.Parse(Console.ReadLine());
- double socialScholarship = 0;
- double aScholarship = 0;
- if (profit < minIncome && grade > 4.50)
- {
- socialScholarship = minIncome * 0.35;
- }
- if (grade >= 5.50)
- {
- aScholarship = grade * 25;
- }
- if (socialScholarship > aScholarship && socialScholarship != 0)
- {
- Console.WriteLine("You get a Social scholarship " + (int)Math.Floor(socialScholarship) + " BGN");
- }
- else if (aScholarship > socialScholarship && aScholarship != 0)
- {
- Console.WriteLine("You get a scholarship for excellent results " + (int)Math.Floor(aScholarship) + " BGN");
- }
- else
- {
- Console.WriteLine("You cannot get a scholarship!");
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement