/*Before seeing the code solution make sure that you have tried enough. Don’t copy- paste the whole code. Find out the logic. If you face any trouble, just inform me in comment.*/
#include<stdio.h>
main()
{
int x,n,i,c=1;
scanf("%d",&n);
x=n;
while(c<=11)
{
x=x+1;
if(x%2!=0)
{
printf("%d\n",x);
}
c++;
}
return 0;
}
//Happy_Coding
#include<stdio.h>
main()
{
int x,n,i,c=1;
scanf("%d",&n);
x=n;
while(c<=11)
{
x=x+1;
if(x%2!=0)
{
printf("%d\n",x);
}
c++;
}
return 0;
}
No comments:
Post a Comment