Tech Study

C++ program to find the eligibility of admission for an engineering course based on the following criteria

Introduction

C++ program to accept two integers and check whether they are equal or not. I have used DEV-C++ compiler for debugging purpose. But you can use any C++ programming language compiler as per your availability.

#include<iostream>
using namespace std;


int main()
{
    int Candiateage;

    cout << "Input the age of the candidate :"<<endl;
    cin >> Candiateage;

    if (Candiateage < 18)
    {
        cout << "Sorry, You are not eligible to caste your vote." <<endl;
        cout << "You would be able to caste your vote after " << 18-Candiateage << " year" <<endl;
    }
    else
    {
         cout << "Congratulation! You are eligible for casting your vote." << endl ;
    }
    return 0;

}

Result

C++ program to find the eligibility of admission for an engineering course based on the following criteria
C++ program to find the eligibility of admission for an engineering course based on the following criteria

 

TaggedC++ program to find the eligibility of admission for an engineering course based on the following criteria

Java Final keyword

Introduction : java final keyword The final keyword present in Java programming language is generally used for restricting the user. …

Read more

C++ Memory Management: new and delete

C++ Memory Management We know that arrays store contiguous and the same type of memory blocks, so memory is allocated …

Read more