wap to print first 10 even numbers using for loop using java
Answers
Answered by
1
Answer:
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++)
{
Similar questions
Math,
18 days ago
Environmental Sciences,
18 days ago
Biology,
1 month ago
Physics,
1 month ago
English,
8 months ago
Social Sciences,
8 months ago