[java]
/**
@author:candidjava.com
@description:program to display odd numbers between 1 to 100
*/
public class odd
{
public static void main(String org[])
{
int i;
for(i=1;i<=100;i++){//loop for take 1 to 100 numbers
if(i%2!=0)//condition to find odd numbers between 1 to 100
{
System.out.println(i);// print odd values between 1 to 100
}
}
}
}
[/java]