Advertisement
Md_hosen_zisad

perform test 3 sol1

Oct 30th, 2017
394
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.20 KB | None | 0 0
  1. #include<stdio.h>
  2. int main()
  3. {
  4.     int n,a,b,i;
  5.     while(scanf("%d",&n)==1)
  6.  {
  7.      for(i=0;i<n;i++)
  8.      {
  9.          scanf("%d %d",&a,&b);
  10.          printf("%d \n",a%b);
  11.      }
  12.  }
  13.  return 0;
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement