Computer Science, asked by beenapanisahu258, 10 hours ago

write a program to print all two digit even numbers starting from 2​

Answers

Answered by realkiller191
1

Answer:

Sounds like you need:

A supply of two digit numbers

Functions to check for one even digit and one odd digit

A conditional to choose the digits that meet the problem

A way to print those

The for this exercise is shorter, actually.

Answered by samarthkrv
0

Answer:

public class Main

{

public static void main(String[] args) {

 for(int i = 10; i < 100; i++){

     if(i%2 == 0){

         System.out.print(i + " ");

     }

 }

}

}

Explanation:

Similar questions