write a program to accept 10 numbers and print only even numbers(by for loop)
Answers
Answered by
5
Class Num
{
Public static Void main()
{
int i;
for( i=2;i<=20;i+=2)
{
System.out.println(i);
}
}
}
HOPE This Helped You!!!
Plzz mark as brainlist answer!!!
{
Public static Void main()
{
int i;
for( i=2;i<=20;i+=2)
{
System.out.println(i);
}
}
}
HOPE This Helped You!!!
Plzz mark as brainlist answer!!!
tjjw13:
brainlist plzzz
Similar questions