Write a program to divide two numbers in C++ language - World Of Programs

World Of Programs

Let's Be The Coder

Recent Tube

Post Top Ad

Write a program to divide two numbers in C++ language

Write a program to divide two numbers in C++ language

Share This
How to write a program to divide two numbers in C++ language

#include <iostream.h>
#include <conio.h>
void main()
{
clrscr();
int a,b,c;
cout <<"Enter two numbers to divide\n";
cin >> a >> b;

c=a+b;
cout <<"division of the numbers = " << c << end1;

getch();
}

OUTPUT: -
Enter two numbers to divide

8
4
division of the numbers =  2

No comments:

Post a Comment

Post Bottom Ad

Responsive Ads Here

Pages