write a program to print only even numbers between 1 to 20 using do-while loop( ) in java
Answers
Answered by
7
Answered by
2
Answer:
import java.util .*;
class even
{
public static void main (string args [])
{
int a;
system.out.println ( " Even Number from 1 to 20:") ;
for ( a=1 ; a<=20 ; a++)
system.out.println (a) ;
}
}
Similar questions
Science,
25 days ago
Social Sciences,
25 days ago
Computer Science,
25 days ago
Hindi,
1 month ago
Math,
1 month ago
Computer Science,
7 months ago
Math,
7 months ago