Computer Science, asked by anishasha03, 10 months ago

write a program to display odd numbers from 1 to 51​

Answers

Answered by vaishnavik052
0

Answer:

#include<stdio.h>

#include<conio.h>

void main()

{

int n,i=1;

printf("enter the limit");

scanf("%d",&n);

while(i<=n)

{

printf("%d odd numbers",i);

i=i+2;

}

getch();

}

Explanation:

Similar questions