Abstract
Write a program that accepts an integer number from the standard input and then prints it out.
#include <iostream> int main() { Â Â Â Â std::cout << "Please enter a number: "; Â Â Â Â int x; Â Â Â Â std::cin >> x; Â Â Â Â std::cout << "You entered: " << x; }
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Author information
Authors and Affiliations
Rights and permissions
Copyright information
© 2023 The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature
About this chapter
Cite this chapter
Dmitrović, S. (2023). Exercises. In: Modern C++ for Absolute Beginners. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-9274-7_9
Download citation
DOI: https://doi.org/10.1007/978-1-4842-9274-7_9
Published:
Publisher Name: Apress, Berkeley, CA
Print ISBN: 978-1-4842-9273-0
Online ISBN: 978-1-4842-9274-7
eBook Packages: Professional and Applied ComputingApress Access BooksProfessional and Applied Computing (R0)