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
cout (output)
cout (output)
Mar 14, 2018 at 2:33am UTC
samtheman
(29)
cout << age;
cout << "your age is";
How can I put the obove example on one line?
Example:
2 is your age.
Mar 14, 2018 at 2:46am UTC
Ganado
(6813)
1
2
int
age = 2; cout << age <<
" is your age.\n"
;
Last edited on
Mar 14, 2018 at 2:46am UTC
Topic archived. No new replies allowed.