C Example | Find Remainder of Dividend and Divisor

This c programming example code will show us how to find remainder of dividend and divisor.

#include<stdio.h>
 
int main()
{
      int remainder, divisor, dividend;
      printf("\nEnter the Dividend:\t");
      scanf("%d", &dividend);
      printf("\nEnter the Divisor:\t");
      scanf("%d", &divisor);
      remainder = dividend % divisor;
      printf("\nRemainder of the Number:\t%d\n", remainder);
      return 0;
}