// Program to illustrate modulo divisor
#include<stdio.h>
#include<conio.h>
void main()
{
int m,n,r;
clrscr();
printf("\nEnter dividend m and divisor n value:");
scanf("%d%d",&m,&n);
r=m-(m/n)*n;
printf("\n\n\n Result:%d",r);
getch();
}
#include<stdio.h>
#include<conio.h>
void main()
{
int m,n,r;
clrscr();
printf("\nEnter dividend m and divisor n value:");
scanf("%d%d",&m,&n);
r=m-(m/n)*n;
printf("\n\n\n Result:%d",r);
getch();
}
No comments:
Post a Comment