write a program to print all two digit even numbers starting from 2
Answers
Answered by
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
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
English,
5 hours ago
Math,
5 hours ago
Computer Science,
10 hours ago
Science,
10 hours ago
Accountancy,
8 months ago