Division of two numbers

Algorithm

Input Two  numbers  
Output Quotient of two numbers  
Complexity O(n^2)  
  
     Division (num1, num2)  
     div=num1/num2;  
     print div;  

Algorithm Description

This function takes two integer num1 and num2 and divides number1 from number2 and assign its value to div which stores quotient after division.

C Code

//Division of two numbers  
//Input : Two integers  
  
#include< stdio.h>  
#include< conio.h>  
int main()  
{  
    int a,b,c;  
    printf("Enter a and b numbers to divide a from b ");  
    scanf("%d%d",&a,&b);  
    c=a/b;  
    printf("Quotient after division is %d",c);  
 }  
  
< /conio.h>< /stdio.h>