cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
If the age is between...
If the age is between...
Sep 29, 2016 at 8:40am UTC
jaybee760
(4)
Hello everyone. I need help putting "if age is between 17 and 42" in code form. I know what to put for the output if the age is between those two int.
Right now I have..
.. else if (no idea what to put)
Sep 29, 2016 at 8:45am UTC
SakurasouBusters
(732)
1
2
3
4
if
(age >= 17 && age <= 42) {
// Do something...
}
Topic archived. No new replies allowed.