Input
The input will be a positive integer value.
Output
The output will be a sequence of six odd numbers.
| Input Sample | Output Sample |
8
|
9
11 13 15 17 19 |
Solution using C :
#include <stdio.h>
int main() {
int x,i,c=0;
scanf("%d",&x);
while(c<=5)
{
if(x%2 != 0)
{
printf("%d\n",x);
c++;
}
x++;
}
return 0;
}


Comments
Post a Comment