Program to print ODD numbers from 1 to 10 - 100 Most Important C# Programs

100 Most Important C# Programs

10. Program to print ODD numbers from 1 to 10

Code:

# include <stdio.h>

# include <conio.h>

main( )

{

int i;

clrscr( );

for (i=1; i<=10; i+=2)

printf(“%d\n”,i);

getch( );

}