0
An efficient way to code this one?
3 ответов
+ 4
Here's the code:
https://code.sololearn.com/c8Ds9bwqhdua/?ref=app
+ 4
As @Ahmed and Lakshay suggests, use if statements instead.
+ 2
#include <iostream>
using namespace std;
int main()
{
int age;
cout<<"enter you age"<<endl;
cin>>age;
if (age < 16)
{cout<<"junior"<<endl;}
else {cout<<"adult"<<endl;}
return 0;
}