Problem Description
Harinis home work for fifth day is to find reminder of two numbers, help Harini to solve the problem.CODING ARENA
#include <stdio.h>
int main()
{
int a, b,c;
scanf("%d\n%d",&a,&b);
c=a%b;
printf("The modulo of two number is:%d",c);
return 0;
}
Test Case 1
Input (stdin)6 2
Expected OutputThe modulo of two number is:0
Test Case 2
Input (stdin)5 2
Expected OutputThe modulo of two number is:1
No comments:
Post a Comment