PROGRAM :-
#include<stdio.h>
void main()
{
int a,b,result;
printf("Enter the value of a: ");
scanf("%d",&a);
printf("Enter the value of b: ");
scanf("%d",&b);
result = a%b;
printf("\n The Answer is =>%d",result);
}
OUTPUT :-
Enter the value of a: 10
Enter the value of b: 4
The Answer is =>2
Comments
Post a Comment