kalin729

Stanimir Izpit

Feb 26th, 2021 (edited)
226
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.25 KB | None | 0 0
  1. #include<stdio.h>
  2. #include<stdlib.h>
  3.  
  4. int main()
  5. {
  6.  
  7.     int N, num;
  8.     scanf("%d",&N);
  9.  
  10.     while(num!=0){
  11.         scanf("%d", &num);
  12.         if(num!=0){
  13.             printf("%d\n", num%N);
  14.         }
  15.     }
  16.  
  17.  
  18.     printf("end");
  19.  
  20.     return 0;
  21. }
  22.  
  23.  
Add Comment
Please, Sign In to add comment