Computer Science, asked by srabanibera7, 9 months ago

write a program in java to find the the average of first 10 natural numbers

Answers

Answered by nibu17
1

public class

public class{

public class{ public static void main (int a, int b, int c, int d, int e, int f, int g, int h, int i, int j)

public class{ public static void main (int a, int b, int c, int d, int e, int f, int g, int h, int i, int j) {

public class{ public static void main (int a, int b, int c, int d, int e, int f, int g, int h, int i, int j) { int n;

public class{ public static void main (int a, int b, int c, int d, int e, int f, int g, int h, int i, int j) { int n; if(n==2)

public class{ public static void main (int a, int b, int c, int d, int e, int f, int g, int h, int i, int j) { int n; if(n==2) avg= (a+b+c+d+e+f+g+h+i+j)/10;

public class{ public static void main (int a, int b, int c, int d, int e, int f, int g, int h, int i, int j) { int n; if(n==2) avg= (a+b+c+d+e+f+g+h+i+j)/10; System.out.print("Average="+avg);

public class{ public static void main (int a, int b, int c, int d, int e, int f, int g, int h, int i, int j) { int n; if(n==2) avg= (a+b+c+d+e+f+g+h+i+j)/10; System.out.print("Average="+avg); }

public class{ public static void main (int a, int b, int c, int d, int e, int f, int g, int h, int i, int j) { int n; if(n==2) avg= (a+b+c+d+e+f+g+h+i+j)/10; System.out.print("Average="+avg); } }

IF U HV ANY PROBLEM...PLS TYPE IN THE COMMENT BOX...☺️

Similar questions