Computer Science, asked by Questioneriorr, 17 days ago

JAVA - Computer.
1. Write a program that calculates sum of four numbers 7.9, 2.3, 8.8 and 13.5
2. Write a program how to calculate area of sphere with radius 7 cm.
3. Write a program to calculate volume of sphere whose radius is 7 cm.​

Answers

Answered by priyadarsanswain101
0

Answer:

Answer to ur 1st Question :-

Explanation:

public class SumNumbers

{

public void Add()

{

double num1 = 7.6, num2 = 2.3 , num3 = 8.8 , num4 = 13.5 ;

double sum = num1+num2+num3+num4;

System.out.print(“ Four numbers are : ”+ num1) ;

System.out.print(“,”+num2);

System.out.print(“,”+num4);

System.out.println(“,”+num4);

System.out.println(“Their sum is ”+sum);

}

}

Similar questions