"Java program to print odd and even numbers between 1 and 100" Code Answer's
You're definitely familiar with the best coding language Java that developers use to develop their projects and they get all their queries like "Java program to print odd and even numbers between 1 and 100" answered properly. Developers are finding an appropriate answer about Java program to print odd and even numbers between 1 and 100 related to the Java coding language. By visiting this online portal developers get answers concerning Java codes question like Java program to print odd and even numbers between 1 and 100. Enter your desired code related query in the search bar and get every piece of information about Java code related question on Java program to print odd and even numbers between 1 and 100.
Java program to print odd and even numbers between 1 and 100
// Java program to print odd and even numbers between 1 and 100
public class EvenOddBetween1And100
{
public static void main(String[] args)
{
System.out.println("Even numbers between 1 and 100: ");
for(int a = 1; a <= 100; a++)
{
if(a % 2 == 0)
{
System.out.print(a + " ");
}
}
System.out.println("\nOdd numbers between 1 and 100: ");
for(int a = 1; a <= 100; a++)
{
if(a % 2 != 0)
{
System.out.print(a + " ");
}
}
}
}
Source: www.flowerbrackets.com
All those coders who are working on the Java based application and are stuck on Java program to print odd and even numbers between 1 and 100 can get a collection of related answers to their query. Programmers need to enter their query on Java program to print odd and even numbers between 1 and 100 related to Java code and they'll get their ambiguities clear immediately. On our webpage, there are tutorials about Java program to print odd and even numbers between 1 and 100 for the programmers working on Java code while coding their module. Coders are also allowed to rectify already present answers of Java program to print odd and even numbers between 1 and 100 while working on the Java language code. Developers can add up suggestions if they deem fit any other answer relating to "Java program to print odd and even numbers between 1 and 100". Visit this developer's friendly online web community, CodeProZone, and get your queries like Java program to print odd and even numbers between 1 and 100 resolved professionally and stay updated to the latest Java updates.