Sunday, 5 November 2017

java program



Problem 01:
 Write a program that display the result of 23.5.
Description:
Using  predefine methed Math.pow(2,3.5)
Solution
public class Message {
 public static void main(String[] args) {
  
   System.out.println("The result is "+Math.pow(2, 3.5));
 }
}
Output:
11.3339
                 

No comments:

Post a Comment