Program # 2: Arithmetic Operation Sum
//Program to enter two numbers and shows their sum. ( Level - Low )
#include <iostream.h>
#include <conio.h>
void main ()
{
int firstnum,secondnum, sum;
cout<<"Enter the value of first number = ";
cin >>
firstnum; //lnput statement
cout<<"Enter the value
of second number
= ";
cin >> secondnum;
sum = firstnum+secondnum; //ArithmeticOperation
cout<<"The sum is = "<< sum;
getch();
}
0 Comments