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

Popular posts from this blog

How to make a snake game using notepad using html [ with pictures ]

How to " Shut down " your pc using notepad [with pictures]

How to make" web html page " just using notepad [ with pictures ]