Discussions Q&R
Task 21 c++
3 Votes
8 RéponsesC++ item 21
0 Vote
10 RéponsesChallenge #1: 21
1 Vote
2 RéponsesI’m stuck Anna 21
0 Vote
4 RéponsesC++ project 21 extra return
-2 Votes
2 Réponses21 year old asking for advice
-4 Votes
7 Réponsesfunction can_i_enter(age)
if (age < 6) { document.write ("you are not allowed to watch Dead pool after 6:00pm.");}
else if (age>=6 && age<17) {document.write("you must be accompanied by a guardian who is 21 or older.");}
else if (age>=17 && age<25) {document.write ("you are allowed to watch Dead pool, right after you show some ID. ")}
else if (age>=25) { document.write ("Yah! you can watch Dead pool with no strings attached!");}
else { document.write ("Invalid age. ");}
can_i_enter (24);
0 Vote
9 Réponsesif 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 Vote
4 RéponsesAujourd'hui en vedette
How to allow one instance of exe
2 Votes
Python
1 Votes
What has happened?
1 Votes
Theater management help me
2 Votes
What should I add/improve ?
1 Votes
Tools for web design?
1 Votes