Advertisement
Guest User

Untitled

a guest
Nov 12th, 2019
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.26 KB | None | 0 0
  1. #include<stdio.h>
  2. int main()
  3. {
  4.     int x,i,y;
  5.     scanf("%d",&x);
  6.     for(i=x;i<=x+11;i=i+2)
  7.     {
  8.         if(x%2==0)
  9.         {
  10.  
  11.             y=i+1;
  12.         }
  13.         else
  14.         {
  15.             y=i;
  16.  
  17.         }
  18.         printf("%d\n",y);
  19.     }
  20.  
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement