Program to display the subtraction of two numbers in C++
Program to display the subtraction of two numbers
It is a simple program to perform subtraction between two numbers
Program :-
#include<iostream.h>
void main ()
{
int a,b,sub;
cout<<"Enter the value of first no :-";
cin>>a;
cout<<"Enter the value of second no :-";
cin>>b;
sub=a-b;
cout<<"The value of two numbers"<<sub<<;
}
Output :-
Enter the value of first no :- 4
Enter the value of second no :- 2
The value of two numbers :- 2
Comments
Post a Comment