Hello Devs,

In this tutorial, we are going to learn C program for division of two numbers

Here is a well-commented example you can understand and analyze.

#include <stdio.h>
int main()
{
    int n1, n2, div;
    
    printf("Enter two integers: ");
    scanf("%d %d", &n1, &n2);

    div = n1 / n2;
    
    printf("Division of two numbers is:= %d\n",div);

    return 0;
}


I hope this example helps you.