#include <iostream>
using namespace std;
int main()
{
int n;
cout<<"Input your age: ";
cin>>n;
if(n>=18)
cout<<"You are an adult";
else
cout<<"You are a kid";
return 0;
}
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
Verified answer
#include <iostream>
using namespace std;
int main()
{
int n;
cout<<"Input your age: ";
cin>>n;
if(n>=18)
cout<<"You are an adult";
else
cout<<"You are a kid";
return 0;
}