Headlines
Loading...
C Program to print odd numbers upto 50

C Program to print odd numbers upto 50

C Program to print odd numbers upto 50

#include<stdio .h="">
#include<conio .h="">
void main()
{
int i;
clrscr();
printf("Odd numbers\n");
for(i=1;i&lt;=50;i++)
{
if(i%2!=0)
printf("\n%d",i);
}
getch();
  
****************OUTPUT****************
Odd numbers

1
3
5
7
9
11
13
15
17
19
21
23
25
27
29
31
33
35
37
39
41
43
45
47
49</conio></stdio>
*** PLEASE checkout the Best deals from for top sites like Amazon, Flipkart etc ***