adjectives in lesson alchemy of nature
Answers
Answered by
2
Answer:
import java.util.*;
public class prog1
{
public static void main(String arg[])
{
Scanner sc=new Scanner(System.in);
double a,b,c,d,e,s,p,avg;
System.out.println("Enter five numbers");
a=sc.nextDouble();
b=sc.nextDouble();
c=sc.nextDouble();
d=sc.nextDouble();
e=sc.nextDouble();
s=a+b+c+d+e;
p=a*b*c*d*e;
avg=s/5;
System.out.println("Sum="+s);
System.out.println("Product="+p);
System.out.println("Average="+avg);
}
}
Answered by
0
Explanation:
adjectives in lesson alchemy of nature
Similar questions