Print the odd 1 to 100 in Java


//Write a program to Print the odd 1 to 100 in Java

#include<stdio.h>

main()

{

int i=1;

clrscr();

while(i<=100)

{

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

i=i+2;

}

getch();

}

Output:

Related Posts

Comments are closed.