Program to enter two numbers and shows their sum. ( Level - Low )

Program # 2: Arithmetic Operation Sum

//Program to enter two numbers and shows their sum. ( Level - Low )

#include <iostream.h> 
#include <conio.h>

void main ()
{
clrscr();
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();
}

Post a Comment

0 Comments