Wednesday, July 29, 2020

Write a program to Division of two number in C++.

Division of two number in C++.

#include<iostream>
using namespace std;
int main()
{
int a,b,div;
cout<<"Enter the First number :\n";
cin>>a;
cout<<"Enter the Second number :\n";
cin>>b;
div=a/b;
cout<<"Division by two number "<<div;
return 0;
}

OUTPUT

Enter the First number
38
Enter the Second number
2
Division by two number 19

No comments:

Post a Comment

Please do not any spam link in Comment Box