The purpose of the program is to demonstrate how to INPUT data from the standard input device (the keyboard) and how to OUTPUT data to the standard output device (screen).
Please enter a number: 23 Please enter another number: 5 The sum of the two numbers is : 28
Hint: To compile in hercules, enter CC sampleio.cpp -o sampleio
To run it, enter sampleio
| This page last modified: Thursday, 06-Oct-2011 12:13:32 CST |
Accessed |