Обсуждения
Task 21 c++
3 голосов
8 ответовLevel 21 - not ready for users?
60 голосов
31 ответC++ item 21
0 голосов
10 ответовIntercept algorithm 21 points
2 голосов
1 ответAlex has now 21 200 followers...
24 голосов
29 ответовChallenge #1: 21
1 голос
2 ответовI’m stuck Anna 21
0 голосов
4 ответовC++ project 21 extra return
-2 голосов
2 ответовWhy does line 21 not work?
0 голосов
7 ответов21 year old asking for advice
-4 голосов
7 ответовWhy do we need private variables?
0 голосов
2 ответовfunction 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 голосов
9 ответов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 голосов
4 ответовАктуальное сегодня
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