Computer Science, asked by panav1443, 9 months ago

Write the program to find all even numbers between 1 and 50

Answers

Answered by vaishnavik052
0

Answer:#include<stdio.h>

#include<conio.h>

void main()

{

int n,i;

clrscr();

printf("\n enter the number");

scanf("%d",&n);

for(i=2;i<=n;i=i+2)

{

printf("%d",i);

}

getch();

}

Explanation:

Similar questions