* Write a Program and Algorithm to find the Division of two Number by using C++ Language.

Algorithm :

  1. Start
  2. Read the value of num1 ,num2 and div.
  3. Enter the value of num1.
  4. Enter  the value of num2.
  5. Calculation, div=num1/num2;
  6. Print the value of Division of two number "div".
  7. Stop.


Program  :

#include<iostream.h>
#include<conio.h>
int main()
{

// Technical Adda (https://mrpankajcse.blogspot.com/)
 int num1,num2,Div;
clrscr();
cout<< "Enter the value of number 1 and number 2";
cin>>a>>b;
Div=num1/num2;
cout<< " Division of two number :: "<<Div;
return 0;
}

              output
 Enter the value of number 1 and number 2 = 40 ↲
20 ↲
Division of two number :: 2




Thanks for visit this page and Support me.

No comments:

Post a Comment

Pages