Saved Bookmarks
| 1. |
Write a program in java to calculate volume of a sphere whose radius is 7.5 cm. |
Answer» Program:import java.io.*; public class Main{ public static void main(String args[]){ System.out.println("Volume of sphere when radius is 7.5cm is : "+((4/3) x 3.14 x 7.5 x 7.5 x 7.5)+"cm."); } } OUTPUT:Volume of sphere when radius is 7.5cm is : 1324.6875cm. Explanation:
----- Hope this HELPS |
|