TUGAS AWAL BAGI KAMU YANG INGIN MENGAMBIL JURUSAN TEHKNIK INFORMATIKA
package
alpro1faisal;
public class
literal_string {
public static void
main(String[] args) {
// this is
literal string
System.out.println("abc\ndef");
System.out.println("abc\tdef");
System.out.println("hello");
}
}
|
abc
def
abc def
hello
|
package alpro1faisal;
public class
literal_bulat {
public static void
main(String[] args) {
// this is
literal bulat
System.out.println("17");
System.out.println("017");
System.out.println("0X17");
}
}
|
17
017
0X17
|
package alpro1faisal;
public class
konstanta_PI_java {
public static void
main(String[] args) {
System.out.println(">>Rizky<<");
final double PI =
3.14;
double radius = 30;
System.out.println("keliling
= " + 2 * PI * radius);
}
}
|
>>Faisal<<
keliling =
188.4
|
package alpro1faisal;
public class
komentar_java {
public static void
main(String[] args) {
System.out.println(">>Rizky<<");
final double pi =
3.14; // definisi konstanta
double radius =
30; // deklarasi
varieble
System.out.println("keliling
= * + 2 * pi * radius");
}
}
|
>>Faisal<<
keliling = * +
2 * pi * radius
|
package alpro1faisal;
public class
operator_aritmatika {
public static void
main(String[] args) {
System.out.println(">>Rizky<<");
System.out.println("1
+ 2 * 3 = " + (1 + 2 * 3));
System.out.println("13
% 5 = " + (13 % 5));
System.out.println("13
% 5.2 = " + (13 % 5.2));
System.out.println("13
/ 5 = " + (13 / 5));
System.out.println("13
/5.2 = " + (13 / 5.2 ));
}
}
|
>>Faisal<<
1 + 2 * 3 = 7
13 % 5 = 3
13 % 5.2 =
2.5999999999999996
13 / 5 = 2
13 /5.2 = 2.5
|
package
alpro1faisal;
public class
literal_string {
public static void
main(String[] args) {
// this is
literal string
System.out.println("abc\ndef");
System.out.println("abc\tdef");
System.out.println("hello");
}
}
|
abc
def
abc def
hello
|
package alpro1faisal;
public class
literal_bulat {
public static void
main(String[] args) {
// this is
literal bulat
System.out.println("17");
System.out.println("017");
System.out.println("0X17");
}
}
|
17
017
0X17
|
package alpro1faisal;
public class
konstanta_PI_java {
public static void
main(String[] args) {
System.out.println(">>Rizky<<");
final double PI =
3.14;
double radius = 30;
System.out.println("keliling
= " + 2 * PI * radius);
}
}
|
>>Faisal<<
keliling =
188.4
|
package alpro1faisal;
public class
komentar_java {
public static void
main(String[] args) {
System.out.println(">>Rizky<<");
final double pi =
3.14; // definisi konstanta
double radius =
30; // deklarasi
varieble
System.out.println("keliling
= * + 2 * pi * radius");
}
}
|
>>Faisal<<
keliling = * +
2 * pi * radius
|
package alpro1faisal;
public class
operator_aritmatika {
public static void
main(String[] args) {
System.out.println(">>Rizky<<");
System.out.println("1
+ 2 * 3 = " + (1 + 2 * 3));
System.out.println("13
% 5 = " + (13 % 5));
System.out.println("13
% 5.2 = " + (13 % 5.2));
System.out.println("13
/ 5 = " + (13 / 5));
System.out.println("13
/5.2 = " + (13 / 5.2 ));
}
}
|
>>Faisal<<
1 + 2 * 3 = 7
13 % 5 = 3
13 % 5.2 =
2.5999999999999996
13 / 5 = 2
13 /5.2 = 2.5
|
package
alpro1faisal;
public class
literal_string {
public static void
main(String[] args) {
// this is
literal string
System.out.println("abc\ndef");
System.out.println("abc\tdef");
System.out.println("hello");
}
}
|
abc
def
abc def
hello
|
package alpro1faisal;
public class
literal_bulat {
public static void
main(String[] args) {
// this is
literal bulat
System.out.println("17");
System.out.println("017");
System.out.println("0X17");
}
}
|
17
017
0X17
|
package alpro1faisal;
public class
konstanta_PI_java {
public static void
main(String[] args) {
System.out.println(">>Rizky<<");
final double PI =
3.14;
double radius = 30;
System.out.println("keliling
= " + 2 * PI * radius);
}
}
|
>>Faisal<<
keliling =
188.4
|
package alpro1faisal;
public class
komentar_java {
public static void
main(String[] args) {
System.out.println(">>Rizky<<");
final double pi =
3.14; // definisi konstanta
double radius =
30; // deklarasi
varieble
System.out.println("keliling
= * + 2 * pi * radius");
}
}
|
>>Faisal<<
keliling = * +
2 * pi * radius
|
package alpro1faisal;
public class
operator_aritmatika {
public static void
main(String[] args) {
System.out.println(">>Rizky<<");
System.out.println("1
+ 2 * 3 = " + (1 + 2 * 3));
System.out.println("13
% 5 = " + (13 % 5));
System.out.println("13
% 5.2 = " + (13 % 5.2));
System.out.println("13
/ 5 = " + (13 / 5));
System.out.println("13
/5.2 = " + (13 / 5.2 ));
}
}
|
>>Faisal<<
1 + 2 * 3 = 7
13 % 5 = 3
13 % 5.2 =
2.5999999999999996
13 / 5 = 2
13 /5.2 = 2.5
|
package
alpro1faisal;
public class
literal_string {
public static void
main(String[] args) {
// this is
literal string
System.out.println("abc\ndef");
System.out.println("abc\tdef");
System.out.println("hello");
}
}
|
abc
def
abc def
hello
|
package alpro1faisal;
public class
literal_bulat {
public static void
main(String[] args) {
// this is
literal bulat
System.out.println("17");
System.out.println("017");
System.out.println("0X17");
}
}
|
17
017
0X17
|
package alpro1faisal;
public class
konstanta_PI_java {
public static void
main(String[] args) {
System.out.println(">>Rizky<<");
final double PI =
3.14;
double radius = 30;
System.out.println("keliling
= " + 2 * PI * radius);
}
}
|
>>Faisal<<
keliling =
188.4
|
package alpro1faisal;
public class
komentar_java {
public static void
main(String[] args) {
System.out.println(">>Rizky<<");
final double pi =
3.14; // definisi konstanta
double radius =
30; // deklarasi
varieble
System.out.println("keliling
= * + 2 * pi * radius");
}
}
|
>>Faisal<<
keliling = * +
2 * pi * radius
|
package alpro1faisal;
public class
operator_aritmatika {
public static void
main(String[] args) {
System.out.println(">>Rizky<<");
System.out.println("1
+ 2 * 3 = " + (1 + 2 * 3));
System.out.println("13
% 5 = " + (13 % 5));
System.out.println("13
% 5.2 = " + (13 % 5.2));
System.out.println("13
/ 5 = " + (13 / 5));
System.out.println("13
/5.2 = " + (13 / 5.2 ));
}
}
|
>>Faisal<<
1 + 2 * 3 = 7
13 % 5 = 3
13 % 5.2 =
2.5999999999999996
13 / 5 = 2
13 /5.2 = 2.5
|
Comments
Post a Comment
bagi kalian yang masih kurang memahami artikel tersebut dimohon untuk bertanya atau melalui komentar