To divide two numbers in C, you can use the '/' operator.
In this example,
numerator
and denominator
and assign values to them./
operator and print the result.#include <stdio.h>
int main() {
int numerator = 20;
int denominator = 5;
int quotient = numerator / denominator;
printf("Division of %d by %d is: %d\n", numerator, denominator, quotient);
return 0;
}
Division of 20 by 5 is: 4
In this tutorial, we learned How to find the Division of Two Numbers in C language with well detailed examples.