4. Write the codes to display even numbers from 1 to 20. in programming
Answers
Answered by
2
Answer:
include<stdio.h>
int main()
{int a,c=0;
for(a=1;a<=20;a++)
{c=a%2;
if(c==1)
printf("%d",a+1);
else.
Answered by
0
Answer:
for (int i=1;i<=20;i++)
{
if ( i%2==0)
System.out.println(i + " ");
}
hope it helps!
plz mark brainliest!
Similar questions