C program to calculate sum of first n odd numbers

C program to calculate sum of first n odd numbers

Output:

To find sum of first 'n' odd numbers, Enter the value of 'n': 3
The sum of first 3 odd numbers is: 9

Implementation: