Dyskusje Q&A
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 głosów
4 odpowiedziPopularne dzisiaj
Free free free trial
1 Votes
Coroutines
4 Votes
Functions
1 Votes
Why these outputs?
0 Votes
Anyone explain me static keyword in java . All functions and uses. This make me confused a lot.
0 Votes
Idris
0 Votes
Operators
0 Votes
Type mismatch with readline
0 Votes
Please create menu for my code
0 Votes