Cprogram

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 1

void main() { int num,i; printf("\n Enter number upto which even numbers must be displayed \t"); scanf("%d",&num);

printf("\n Even numbers less than %d are \n",num); for(i=2;i<num;i+=2) { printf("%d ",i); } getch(); }

Read more: http://wiki.answers.com/Q/Write_a_c_program_to_print_even_numbers_using_forloop#ixzz1cqSJjkXf

You might also like