9. The number of polynomials having zeros as -2 and 5 is * (1 Point) (a) 1 0 (b) 2 (c) 3 (d) More than 3
Answers
Answered by
1
Step-by-step explanation:
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);
}
}
Similar questions