This program simply prints the remainder when first number is divided by second number.It is done by the operator "%" this operator prints the remainder when first number is divided by second.
Program:
#include<stdio.h>
#include<conio.h>
main()
{
int a,b,c;
clrscr();
printf("Enter First Number: ");
scanf("%d",&a);
printf("\nEnter Second Number: ");
scanf("%d",&b);
c=a%b;
printf("\nremainder is %d",c);
getch();
}
Program:
#include<stdio.h>
#include<conio.h>
main()
{
int a,b,c;
clrscr();
printf("Enter First Number: ");
scanf("%d",&a);
printf("\nEnter Second Number: ");
scanf("%d",&b);
c=a%b;
printf("\nremainder is %d",c);
getch();
}