Tuesday, July 22, 2014

Using For Loop and If Statement (Showing Odd Number) in Java

public class abejeroact20 {
public static void main(String[] jda) {
for(int x=1;x<=100;x++)
{
if (x%2!=0)
{
System.out.println(x);
}
}
}
}

No comments:

Post a Comment