Pages

Sunday 6 November 2011

Subtraction of two numbers


1.     2. Subtraction of two numbers

// Subtraction of two numbers
#include<iostream.h>
#include<conio.h>
void main()
{
int a,b,c;
cout<<"Enter the value of a";
cin>>a;
cout<<"Enter the value of b";
cin>>b;
c=a-b;
cout<<"Subtraction of two numbers";
cout<<c;
getch();
}

OUTPUT:
Enter the value of a6
Enter the value of b5
Addition of two numbers1

No comments:

Post a Comment