Sample Program 2 |
|
||||||
This is a sample program that uses
the arithmetic operators. It displays the result of arithmetic operations
on the screen. To make the result more visible we have used end line
character (endl) with cout. So the statement: cout <<
endl; Simply ends the current line on the screen and the next cout statement displayed at the next line on the screen. |
|||||||
Code of The Program
|
Output of the program
|
||||||
|
Previous |
TOC |
Next |
||||