human
Find the average of first N natural numbers | Return the average of first n natural numbers.
Driven Program"
Solution in Python:
assistant
#Here is code to find the average of first N natural numbers and the other steps required.
 def avgOfFirstN ( n ) :
	return ( float ) ( 1 + n ) / 2 ;
n = 20
print ( avgOfFirstN ( n ) )