Answers for "c program to print first 10 even numbers using for loop"

C
0

c program to print first 10 even numbers using for loop

#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;
}
Posted by: Guest on March-29-2021

Code answers related to "c program to print first 10 even numbers using for loop"

Code answers related to "C"

Browse Popular Code Answers by Language