Java Projetct
Monday, 22 September 2014
IfElseWhiledemo
public class IfElseWhiledemo {
public static void main (String args[])
{
int i =1;
while (i <=100)
{
if(i%2==0)
{
System.out.println(i);
}
i++;
}
System.out.println(i );
}
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment