Computer Science, asked by kashaf14, 1 year ago

Hello guys. I want your help.

Write a program in Java using for loop to print all even number upto 30 terms.
Thank you.

Answers

Answered by unnayn
1
class even
{
public void main()
{

for(int i=1 ; i<=30; i++)
{
if(i%2==0)
System.out.println(i);
}
}
}

kashaf14: only one correction that is (String args[] )
Similar questions