Abstract
Write a program that accepts an integer number from the standard input and then print that number.
#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
© 2020 Slobodan Dmitrović
About this chapter
Cite this chapter
Dmitrović, S. (2020). Exercises. In: Modern C++ for Absolute Beginners. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-6047-0_9
Download citation
DOI: https://doi.org/10.1007/978-1-4842-6047-0_9
Published:
Publisher Name: Apress, Berkeley, CA
Print ISBN: 978-1-4842-6046-3
Online ISBN: 978-1-4842-6047-0
eBook Packages: Professional and Applied ComputingProfessional and Applied Computing (R0)Apress Access Books