Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- int main()
- {
- int n,a,b,i;
- while(scanf("%d",&n)==1)
- {
- for(i=0;i<n;i++)
- {
- scanf("%d %d",&a,&b);
- printf("%d \n",a%b);
- }
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement