Advertisement
PROFESSOR_AIH

Six Odd Numbers

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