Write the program to find all even numbers between 1 and 50
Answers
Answered by
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
Physics,
6 months ago
English,
6 months ago
Environmental Sciences,
6 months ago
Geography,
11 months ago
Math,
11 months ago