NALLAMUTHU GOUNDER MAHALINGAM COLLEGE
POLLACHI-642001
N.DHIVYA
BSC COMPUTER SCIENCE(1st year)
8.TNPSC Qualification
#include <iostream>
int main()
{
int age;
std::string
SSLC;
std:: string
qualification;
char name;
std::cout<<"Enter your
name:"<<"Dhivya\n";
std::cout<<"Enter your age:\n";
std::cin>>age;
std::cout<<"enter your qualification\n";
std::cin>>qualification;
if(age>=21
& age<=30 && qualification=="graduate")
{
std::cout<<"you are
eligible to apply for group1\n";
}
else
{
std::cout<<"you are not eligible to apply for group1\n";
}
if(age>=18 & age<=30 &&
qualification=="graduate")
{
std::cout<<"you are
eligible to apply for group2\n";
}
else
{
std::cout<<"you are not eligible to apply for group2\n";
}
if(age>=18 & age<=32 &&
qualification=="graduate")
{
std::cout<<"you are eligible to apply for group3\n";
}
else
{
std::cout<<"you are not eligible to apply for group3\n";
}
if(age>=18 & age<=30 &&
qualification=="SSLC")
{
std::cout<<"you are eligible to apply for group4";
}
else
{
std::cout<<"you are not eligible to apply for group4";
}
return 0;
}
OUTPUT: