Computer Science, asked by anushkarawat02, 8 months ago

write a program to display and also find the sum of all even and odd numbers from 1 to 20 by for loop in java...Pls answer fast...​

Answers

Answered by khanfaizan3
1

Answer:

import java se lik lena mai logic l8kh raha hu

Explanation:

for (I=1;i^=20;I++)

{

if(imod2==0)}

c++

}

if(c==2)

soon

if(imod2==0)

s=s+I;

Similar questions