Back To C Basic Index
//program to input two numbers and find their remainder (division) #include
#include
void main() { int a,b; int remainder; clrscr(); printf("enter value for a"); scanf("%d",&a); printf("enter value for b"); scanf("%d",&b); remainder=a%b; printf("remainder after dividing a by b is %d",remainder); getch(); }