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 ConsoleApplication1
- {
- class Program
- {
- static void Main(string[] args)
- {
- Console.WriteLine("Please specify age:");
- double age = double.Parse(Console.ReadLine());
- Console.WriteLine("Please specify salary");
- double salary = double.Parse(Console.ReadLine());
- Console.WriteLine("Please specify grades average");
- double avg = double.Parse(Console.ReadLine());
- if((age<30 && age>20) || (salary<2000) || (avg>85 || avg==85))
- {
- Console.WriteLine("Congratulations! You have successfully met the requirments for the scholarship!");
- if(age<30 && age>20)
- Console.WriteLine("Your age is a perfect match!");
- if (salary < 2000)
- Console.WriteLine("Your salary matches the required amount!");
- if(avg>85 || avg==85)
- Console.WriteLine("Your grades are great!");
- }
- else
- {
- Console.WriteLine("Sorry, but you do not meet the requirements for the scholarship");
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement