Write a C-program to print sum of even or odd numbers based on the n value using while loop?