Dyskusje Q&A
Task 21 c++
3 głosów
8 odpowiedziLevel 21 - not ready for users?
60 głosów
31 odpowiedziC++ item 21
0 głosów
10 odpowiedziIntercept algorithm 21 points
2 głosów
1 OdpowiedźChallenge #1: 21
1 Głos
2 odpowiedziI’m stuck Anna 21
0 głosów
4 odpowiedziC++ project 21 extra return
-2 głosów
2 odpowiedziWhy does line 21 not work?
0 głosów
7 odpowiedzi21 year old asking for advice
-4 głosów
7 odpowiedzifunction 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 głosów
9 odpowiedziif 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 głosów
4 odpowiedziPopularne dzisiaj
Time up code for data revision
0 Votes
Best Python Calculator Code
1 Votes
New code
1 Votes
Need help
1 Votes
Clean Code
3 Votes
Hello Everyone
0 Votes