Write a C-program to print even number or odd number based on the n value using single for loop?