Fatihul Ulum Community of Knowledge
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Pangkat dan akar

Go down

Pangkat dan akar Empty Pangkat dan akar

Post  cpp Sun Jul 05, 2009 1:29 pm

Code:

public class juju
{
    public static void main(String args[])
    {
          int a = 64 ;
          int b = 25 ;
          int c = 2  ;
          double besih ;
          double besih_1 ;
          double pangkat ;
          besih = Math.sqrt(a) ;
          besih_1 = Math.sqrt(b) ;
          pangkat = Math.pow(c,3);
          System.out.println(besih) ;
          System.out.println(besih_1) ;
          System.out.println(pangkat);
    }
}
public class juju
{
public static void main(String args[])
{
int a = 64 ;
int b = 25 ;
int c = 2 ;
double besih ;
double besih_1 ;
double pangkat ;
besih = Math.sqrt(a) ;
besih_1 = Math.sqrt(b) ;
pangkat = Math.pow(c,3);
System.out.println(besih) ;
System.out.println(besih_1) ;
System.out.println(pangkat);
}
}
///////////////////////////////////////
Math.pow () untuk pangkat.
Math.sqrt () untuk akar
semoga code di atas bisa membantu.

cpp
Pejuang
Pejuang

Jumlah posting : 35
Registration date : 15.03.09

Kembali Ke Atas Go down

Kembali Ke Atas

- Similar topics

 
Permissions in this forum:
Anda tidak dapat menjawab topik