Advertisement
Weewee21

CheckAgeOrHeightByRequirementToGetAcceptedToTheJob

Oct 29th, 2020
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.85 KB | None | 0 0
  1. using System;
  2.  
  3. namespace ConsoleApp17
  4. {
  5.     class Program
  6.     {
  7.         static void Main(string[] args)
  8.         {
  9.  
  10.             int Height, Age;
  11.  
  12.             string JobAccepted;
  13.  
  14.             string JobDenied;
  15.  
  16.             JobAccepted = ("You Got Accepted to the Job!");
  17.  
  18.             JobDenied = ("You Have Been Declined!");
  19.  
  20.             Console.WriteLine("\nWelcome to the Job Application Reviewer!");
  21.             Age = int.Parse(Console.ReadLine());
  22.  
  23.             Console.WriteLine("\nWhat is your Height?");
  24.             Height = int.Parse(Console.ReadLine());
  25.  
  26.             if ((Age >= 20 && 40 >= Age) || (Age >= 50 && 80 >= Age && Height >= 180))
  27.             {
  28.                 Console.WriteLine(JobAccepted);
  29.             }
  30.             else
  31.             {
  32.                 Console.WriteLine(JobDenied);
  33.             }
  34.  
  35.  
  36.         }
  37.     }
  38. }
  39.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement