public class MyClass { public static void main(String args[]) { double r=Double.parseDouble(args[0]); double h=Double.parseDouble(args[1]); double volume=((22*r*r*h)/7); System.out.println("volume of Cylinder is: " +volume); } }
Input Arguments (args of Main Method)...
Result...
compiled and executed in {{this.executionTime}} second(s)

								
Online execution powered by JDoodle.com
{{this.setLanguage("java", "",".java",true, 0)}}