Programs that make your work easy
All c and C++ programs on all topics are here.
Thursday, 29 September 2016
program to divide two numbers
#include<iostream.h>
#include<conio.h>
void main()
{
clrscr();
int a,b,c;
cout<<" enter the first number ";
cin>>a;
cout<<" enter the second number ";
cin>>b;
c=a/b;
cout<<" the result is "<<c;
getch();
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment