C Program to divide two numbers (Division Operator)

 // C Program to divide two numbers

 #include<stdio.h>                //header file declaration

int main()                             //main method

{

     int n1, n2, div;                //variable declartion

     printf("\n Input Two Numbers:");

     scanf("%d %d", &n1,&n2);                //Input numbers

     div=n1/n2;                //division opeartor

     printf("The division of two numbers is: %d", div);        //print results

     return 0;

}

OUTPUT:






Comments

Popular posts from this blog

C Program to print Fibonacci Series