qb64
write a program to print even numbers from 100 to 50 150 in reverse order
Answers
Answered by
0
Answer:
#include <stdio.h>
int main() {
int i;
printf("Even numbers between 1 to 50 (inclusive):\n");
for (i = 1; i <= 50; i++)
{
if(i%2 == 0)
{
printf("%d ", i);
}
}
return 0;
}
Similar questions
Math,
3 months ago
Math,
3 months ago
Physics,
6 months ago
Math,
6 months ago
Social Sciences,
11 months ago
Social Sciences,
11 months ago
English,
11 months ago