Computer Science, asked by je19900403, 7 months ago

4. Write the codes to display even numbers from 1 to 20. in programming

Answers

Answered by nitarawat14
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 sakshidabral27
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