Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobierenF&A Diskussionen
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 Stimmen
4 AntwortenHeute heiß
How I can win more Heart?
0 Votes
Reporting error - HOW?
1 Votes
Notifications
3 Votes
I want to make it how can i
0 Votes
Armstrong number
0 Votes
Flexbox Layout question
2 Votes