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 Scholarship
- {
- class Program
- {
- static void Main(string[] args)
- {
- double incomeInLeva = double.Parse(Console.ReadLine());
- double averageSuccess = double.Parse(Console.ReadLine());
- double minimalSalary = double.Parse(Console.ReadLine());
- double SocialScholarship = Math.Floor(minimalSalary * 0.35);
- double ScholarshipForExcellentResults = Math.Floor(averageSuccess * 25);
- if (incomeInLeva < minimalSalary && averageSuccess > 4.5 && averageSuccess < 5.5 && SocialScholarship > ScholarshipForExcellentResults)
- {
- Console.WriteLine($"You get a Social Scholarship {SocialScholarship} BGN");
- }
- else if(averageSuccess >= 5.5 && ScholarshipForExcellentResults >= SocialScholarship)
- {
- Console.WriteLine($"You get a scholarship for excellent results {ScholarshipForExcellentResults} BGN");
- }
- else
- {
- Console.WriteLine("You cannot get a scholarship!");
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement