Friday 4 July 2014

Program to divide two numbers




//Subtraction of two numbers
#include<iostream.h>
#include<conio.h>
void main ()
{
int a,b,quo;
clrscr ();
cout<<"Enter two numbers:";
cin>>a>>b;
if (b!=0)
{
quo=a/b;
cout<<"Quotient="<<quo;
}
getch();
}

No comments:

Post a Comment