C program to print odd numbers using while loop

C program to print odd numbers using while loop

Output:

Enter the number of elements:
10
Enter the elements:
1 2 3 4 5 6 7 8 9 10
The odd numbers are:
1 3 5 7 9

Implementation: