Even And Odd No Beetween 1 to 50 in java
PROGRAMME :-
class Even
{
public static void main(String ar[]) //Main Method
{
int i;
for(i=1;i<=50;i++) //First For loop
{
if(i%2==0) //Condition Apply
{
System.out.println("Even nos are"+i);
}
else
{
System.out.println("Odd nos are"+i);
}
}
}
}
//Output Success
THANKS FOR WATCHING GUYS.....!!!!!!!!!!!!!!
Comments
Post a Comment