World Languages, asked by saidheeraj7, 22 hours ago

Directions : Six dishes A through F, among which two are starters two are main course and two are desserts, are arranged in a circular order. A is adjacent to F.C is not adjacent to either B or E.D is a main course and is adjacent to desserts.Both the starters are adjacent to each other. A is opposite a dessert which is not B.​

Answers

Answered by Piyushthakur1432
6

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);

}

}

Similar questions