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