#include<stdio.h>
#include<conio.h>
void main()
{
int x,y,r;
clrscr();
printf("Enter first number, x= : ");
scanf("%d",&x);
printf("\nEnter second number, y= : ");
scanf("%d",&y);
r=x%y;
printf("\nMod(x%y) = %d",r);
getch();
}
///////////////////////////////////////////////////////////////////////////
Copy & paste this code in your TC & run, then you will get output.......
If you have any problem please comment below.........