Wednesday, July 29, 2020

Write a program to subtraction of two number in C++.

Subtraction of two number in C++.


#include<iostream>
using namespace std;
int main()
{
int a,b,sub;
cout<<"Enter the First number :\n";
cin>>a;
cout<<"Enter the Second number :\n";
cin>>b;
sub=a-b;
cout<<"Subtraction of two number "<<sub;
return 0;
}

OUTPUT

Enter the First number
55
Enter the Second number
36
Subtraction of two number 19

No comments:

Post a Comment

Please do not any spam link in Comment Box