Advertisement
PROFESSOR_AIH

Remaining 2

Mar 30th, 2022
36
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,i;
  5.     scanf("%d",&n);
  6.     for(i=1; i<10000; i++)
  7.     {
  8.         if(i%n==2)
  9.         {
  10.             printf("%d\n",i);
  11.         }
  12.     }
  13.     return 0;
  14. }
  15.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement