Search:

Type: Posts; User: UniverseCloud

Search: Search took 0.11 seconds.

  1. Replies
    5
    Views
    932

    Re: Help the newbie

    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 =...
  2. Replies
    5
    Views
    932

    Re: Help the newbie

    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...
  3. Replies
    5
    Views
    932

    Help the newbie

    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);
    ...
Results 1 to 3 of 3