Computer Science, asked by spiritgaming38, 1 month ago

Write a program in Java to display all even numbers up to 100​

Answers

Answered by karthickvsnl87
1

Explanation:

Using Java for Loop

  • public class DisplayEvenNumbersExample1.
  • {
  • public static void main(String args[])
  • {
  • int number=100;
  • System.out.print("List of even numbers from 1 to "+number+": ");
  • for (int i=1; i<=number; i++)
  • {
Answered by StrawBerryJamin
6

Answer:

refer to the attachment ..

hope it helps u

have a great dayy

Explanation:

Attachments:
Similar questions