-
Notifications
You must be signed in to change notification settings - Fork 0
/
AldhiyaWrapper.java
35 lines (26 loc) · 1.43 KB
/
AldhiyaWrapper.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
public class AldhiyaWrapper {
public static void main (String[] args) {
System.out.println ("*******************************************");
System.out.println ("* SMK TELKOM MEDAN *");
System.out.println ("*-----------------------------------------*");
System.out.println ("* NAMA = Aldhiya Rozak *");
System.out.println ("* KELAS = XI RPL *");
System.out.println ("* NO = 02 *");
System.out.println ("*******************************************");
System.out.println (Math.E);
System.out.println (Math.PI);
System.out.println ("Sinus 30 = "+Math.toRadians(30));
System.out.println ("Cosinus 30 = "+Math.toRadians(30));
System.out.println ("Tangen 30 = "+Math.toRadians(30));
System.out.println ("e pangkat 3 = "+Math.exp(3));
System.out.println ("log 10 base e = "+Math.log(10));
System.out.println ("2 pangkat 3 = "+Math.pow(2,3));
System.out.println ("akar 16 = "+Math.sqrt(16));
System.out.println ("Nilai mutlak -46,98 = "+Math.abs(-46.98));
System.out.println ("Max = "+Math.max(6.9,8.3));
System.out.println ("Pembulatan 5.7 = "+Math.round(5.7));
System.out.println ("Pembulatan ke atas 6.1 = "+Math.ceil(6.1));
System.out.println ("Pembulatan ke bawah 6.5 = "+Math.floor(6.5));
System.out.println ("Nilai random 1-10 = "+(int)(Math.random()*10));
}
}