Sorry for the late reply!
double d = Math.PI*(Math.sqrt(7));
System.out.printf("%5.6f", d);
P.S if i removed the multiplication sign and used "double d =...
Type: Posts; User: UniverseCloud
Sorry for the late reply!
double d = Math.PI*(Math.sqrt(7));
System.out.printf("%5.6f", d);
P.S if i removed the multiplication sign and used "double d =...
It just says Method call expected with this error
Error:(10, 24) java: cannot find symbol
symbol: method PI(double)
location: class java.lang.Math
PI to the power of 7 should give me...
package com.company;
public class Main {
public static void main(String[] args) {
double a = (1/84);
double b = Math.sqrt(123456879);
double c = Math.cbrt(2);
...