Pages

Write A programme that input your intermediate and metric %age and decide the eligibility for Admission in engnerring /medical by using (and gates) and (or gates)

Input:

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace _22222222222
{
    class Program
    {
        static void Main(string[] args)
        {
            double a2,a3;
            Char op;
            Console.WriteLine("if you have done ur intermediate in pree engneering write(E)\n for pree medical write (M)\n for computer science write (C)");
            op=Convert.ToChar(Console.ReadLine());
            Console.WriteLine("Please enter ur intermediate persentage");
            a2=Convert.ToDouble(Console.ReadLine());
            Console.WriteLine("please enter your metric marks");
            a3=Convert.ToDouble(Console.ReadLine());

            if ((op == 'E') && (a2 >= 60) && (a3 >= 60) || (op == 'C') && (a2 >= 60) && (a3 >= 60))
            {
                Console.WriteLine("YOU ARE ELIGIBLE FOR BSE");
            }
            else
            if((op=='M')&&(a2>=60)&&(a3>=60))
            {
                Console.WriteLine("YOU ARE ELIGIBLE FOR MBBS");
            }
            else
                if ((op == 'C') && (a2 >= 50) && (a3 >= 60) || (op == 'E') && (a2 >= 50) && (a3 >= 60))
                {
                      Console.WriteLine("YOU ARE ELIGIBLE FOR BBA");
                }
            else
            {
                Console.WriteLine("YOU ARE not ELIGIBLE FOR BSE AND MBBS and BBA");
            }
           
           
        }
    }

}

OUTPUT:

No comments:

Post a Comment