Q&A Discussions
HELP PLEASE!
0 Votes
4 Answersif 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 Votes
4 AnswersHow can I read from a file this line
19 34 Gateway Arch - St. Louis, MO.
The first digit is age, second timeUsed, and the rest description. So I want to read them and store them in a variable.
The code insime my while loop of my File is int age = reader.nextInt();
Int Tused = reader.nextInt();
Description = reader.next()
0 Votes
4 AnswersПомогите с задачами
0 Votes
1 AnswerHow can it be run
0 Votes
2 AnswersStoring userinputed ints
0 Votes
5 AnswersHot today
Functions in python
2 Votes
How to make a playground
1 Votes
For Mobile app
0 Votes
I need advice
0 Votes
Html 5 document question
1 Votes
Paint costs
1 Votes
Learning Python - Question
1 Votes