Problem Description
Write a C program to find the quotient and remainder for the given dividend and divisor.CODING ARENA
#include <stdio.h>
int main()
{
int a,b;
scanf("%d%d",&a,&b);
printf("%d",a/b);
printf("\n%d",a%b);
return 0;
}
Test Case 1
Input (stdin)25 4
Expected Output6 1
Test Case 2
Input (stdin)35 6
Expected Output5 5
No comments:
Post a Comment