which of the following is used to calculate the average of a range of values
Answers
Answer:
returns the average (arithmetic mean) of the argument
Explanation:
For example, if the range A1:A20 contains numbers, the formula =AVERAGE(A1:A20) returns the average of those numbers.
Answer:
//Program to print prime numbers upto given integer
import java.util.*;
class Prime
{
public static void main(String args[])
{
int n,f;
Scanner scr=new Scanner(System.in);
System.out.println("\nEnter n value: ");
n=scr.nextInt();
System.out.println("\nPrimenumbers are : ");
for(int i=2;i<=n;i++)
{
f=0;
for(int j=2;j<=i/2;j++)
if((i%j)==0)
{
f=1;
break;
}
if(f==0)
System.out.print(i+" ");
}
}
}
Explanation: