Computer Science, asked by akm2207056, 8 hours ago

Write a BASIC-256 program to print even numbers from 0 to 20 using for loop.​

Answers

Answered by samarthkrv
0

Answer:

import java.util.*;

class Brainly

{

public static void main(String args[])

{

for(int i = 0; i < 20; i++)

 {

  if(i%2==0)

  {

  System.out.print(i);

  }

 }

}

}

Explanation:

Similar questions