Computer Science, asked by aryansingh042006, 9 months ago

10.write basic statement.
If the value of age is more than or equal to 18 then display “ELIGIBLE FOR LICENCE”
otherwise display "SORRY, NOT ELIGIBLE”.

Answers

Answered by godspeedaditya
0

In python:

age=int(input())

if age>=18 :

print("ELIGIBLE FOR LICENSE")

else:

print("SORRY, NOT ELIGIBLE")

___________________________________________

In C++:

#include<iostream>

using namespace std;

int main()

{

int age;

cout<<"Enter your age: ";

cin>>age;

if(age>=18)

{

cout<<"ELIGIBLE FOR LICENSE"<<endl;

}

else

{

cout<<"SORRY NOT ELIGIBLE"<<endl;

}

}

Please mark me as the brainliest

Similar questions