Programming 1 - Welcome to Java - Compilations of mine
I want to share my compilations to others.
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
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment