write a program to print all even numbers from 1 to 30
Answers
Answered by
0
Answer:
Solution
Explanation:
I don't know that you are looking for answer in which coding language but I have compiled the below program in C
#include <stdio.h>
#include <conio.h>
int main()
{
int i;
printf("Even numbers between 1 to 30 are: ");
for(i=1;i<30;i++)
{
if(i%2==0)
{printf("%d ",i);}
else
{
continue;
}
}
return 0;
}
Similar questions