import java.io.*;
class pattern1
{
public static void main(String args[])
{
System.out.print(average(25,36,65,69,68,89));
}
public static int average(int...number)
{
int total=0;
for(int x:number)
total+=x;
return total/number.length;
}
}
import java.io.*;
class pattern1
{
public static void main(String args[])
{
System.out.print(average(25,36,65,69,68,89));
}
public static int average(int...number)
{
int total=0;
for(int x:number)
total+=x;
return total/number.length;
}
}
Comments
Post a Comment