text: Average of first n odd naturals numbers | java Program to find the average of sum of first n odd numbers ; Return the average of sum of first n odd numbers ; Driver Code
code: import java . io . * ; class GFG { static int avg_of_odd_num ( int n ) { return n ; } public static void main ( String [ ] args ) { int n = 8 ; System . out . println ( avg_of_odd_num ( n ) ) ; } }