Q&A Discussions
if i text 21 it stacks. program says you are a child. you are a teenager. you are adult. how can i delete this "stack".
#include <iostream>
using namespace std;
int main() {
int age;
cin>>age;
if (age>=14){
cout<<"You're a Teenager"<<endl;
}
if (age>=18){
cout<<"You're adult"<<endl;
}
if (age>=0){
cout<<"You're a Child"<<endl;
}
else{
cout<<"Are u stupid ?"<<endl;
}
return 0;
}
0 Votes
4 AnswersHot today
C pointers
1 Votes
Python
0 Votes
SQL
1 Votes
Guys help please
0 Votes
Slicing in python
1 Votes
Python question
1 Votes
Control flow
0 Votes
Front-end vs Full-stack
1 Votes
HTML
0 Votes