# data[].attributes.body
<p>
Makanan Kegemaran
<br><input type="checkbox"> Keropok Lekor
<br><input type="checkbox"> Maggie
<br><input type="checkbox"> Lobsters
<br><input type="checkbox"> Udang Masak Petai
<br><input type="checkbox"> Nasi Goreng Kampung (Pedas :P)
<p>
<!--  KOMEN  -->
</form>
</body>

</html>

# data[].attributes.body
<html>
<head>
<title>asdasd</title>
</head>

<body>
<h2>BIODATA DIRI</h2>
<form>
nama : <input type="text">
<p>
PIN : <input type="password">
<p>
SPM :
<select>
<option>9A</option>
<option>8A</option>
<option>7A</option>
<option>6A</option>
<option>5A</option>
</select>
<p>
alamat :
<br>
<textarea  rows="5" cols="25">
172, Persiaran Sultan Salahuddin Abdul Aziz Shah, Presint 1, 62000 Putrajaya, Wilayah Persekutuan Putrajaya
</textarea>
<p>
no telefon : <input type="number">
<p>
sekolah : <input type="text">
<p>
hobi : <input type="text">
<p>
jantina :
<br><input type="radio" name="hannah" >Lelaki
<br><input type="radio" name="hannah" >Perempuan
<br><input type="radio" name="hannah" >Khunsa

# data[].attributes.body
<html>
<head><style>
table,td,th {
border:3px solid purple;
border-collapse: collapse;
text-align:center;
font-family:Arial;
}
th {background-color:#c8a2c8;}
td {background-color:#E6D1F2;}
</style></head>
<body>

<table>
<tr><th>NAMA</th><th>UMUR</th></tr>
<tr><td>ADAM</td><td >15</td></tr>
<tr><td>HANNAH</td><td>18</td></tr>
</table>

</body>

</html>

# data[].attributes.body
import java.util.Scanner;
class Main {
public static void main(String[] args) {
Scanner input = new Scanner(System.in);
int a = (int)(1+Math.random()*9);
int b = (int)(1+Math.random()*9);
System.out.println(a+" + "+b+" = ?");
int jawapan = input.nextInt();
int jawapan1 = a+b;
if (jawapan == jawapan1){
String [] betul = {"Wah, anda bernas !","Tahniah, jawapan anda betul.","Anda memang gempak."};
int a1 = (int)(Math.random()*(betul.length));
System.out.println(betul[a1]);
}
else {
String [] salah = {"Boooo, anda salah !","Salah, anda kurang bijak.","Anda tidak gempak, maaf."};
int b1 = (int)(Math.random()*(salah.length));
System.out.println(salah[b1]);

}
}
}

# data[].attributes.body
import java.util.Scanner;
class Main {
public static void main(String[] args) {
Scanner name = new Scanner(System.in);
System.out.println("Name 1 = ");
String name1 = name.nextLine();
System.out.println("Name 2 = ");
String name2 = name.nextLine();
int a = (int)(Math.random()*100);
System.out.println(name1+" ♡ " +name2);
System.out.println(a +"%");
}
}

# data[].attributes.body
class Main {
public static void main(String[] args) {
String [] male ={"Ali","Abu","Bob","Chong","Danial","Darwish","Ehsan","Fizi","Haris","Jamal","Kamal"};
String [] female ={"Alicia","Farah","Husna","Wani","Aliya","Natasya","Farisha","Batrisya","Balqis","Emily","Amy"};
int a = (int)(Math.random()*(male.length));
int b = (int)(Math.random()*(female.length));
System.out.println(male[a]+" ♡ " +female[b]);
}
}

# data[].attributes.body
class Main {
public static void main(String[] args) {
String [] nama ={"Adam","Alia","Wong","Devi"};
int [] umur ={16,17,16,17};
double [] tinggi ={182.1,172.5,173.2,175.0};

System.out.println("Nama\tUmur\tTinggi");

for (int a=0;a<nama.length;a++) {
System.out.println(nama[a]+"\t"+umur[a]+"\t"+"\t"+tinggi[a]);
}

}
}

# data[].attributes.body
class Main {
public static void main(String[] args) {
String [] nama ={"Kamal","Danial","Yusof"};
String [] rumah ={"Marikh","Pluto","Jupiter"};
double [] mata ={35.2,44.2,56.1};

for (int a=0;a<nama.length;a++) {
System.out.println(nama[a]);
System.out.println(rumah[a]);
System.out.println(mata[a]);
System.out.println(" ");
}

}
}

# data[].attributes.body
class Main {
public static void main(String[] args) {
String [] color ={"red", "orange", "yellow", "green","blue", "indigo", "violet" };
for (int a=0;a<color.length;a++) {
System.out.println(color[a]);
}
}
}

# data[].attributes.body
class Main {
public static void main(String[] args) {
int [] color ={60,77,23,58,96,86,45,89,100,360};
for (int a=0;a<color.length;a=a+1) {
System.out.println(color[a]);
}
}
}

# data[].attributes.body
<html>
<head>
<title>Hannah HTML</title>
</head>
<body>
[ Webdesign ]
<li>HTML</li>
<li>javascript</li>
<li>css</li>
<li>PHP</li>
<li>SQL</li>
<br>
[ Style ]
<br><b>HANNAH</b>
<br><i>HANNAH</i>
<br><u>HANNAH</u>
<br><strike>HANNAH</strike>
<br>x<sup>2</sup>–6x+5
<br>CuCl<sub>2</sub>
<br>H<sub>2</sub>SO<sub>4</sub>
<br><mark>HANNAH</mark>
<br>
<li>HANNAH</li>
<span>HANNAH</span>
<div style="color:red">HANNAH</div>
<div style="background-color:red">HANNAH</div>
<a href="https://google.com">GOOGLE<

# data[].attributes.headline
rock paper scissors ( 2 player version )

# data[].attributes.subject
rock paper scissors ( 2 player version )

# data[].attributes.body
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner nom = new Scanner(System.in);

System.out.println("1 = ROCK, 2 = PAPER, 3 = SCISSORS ");
System.out.print("Player 1, enter a number from 1-3 : ");
int x = nom.nextInt();
System.out.print("Player 2, enter a number from 1-3 : ");
int y = nom.nextInt();
String xo ="";
String yo ="";
if (x==1){xo="ROCK";};
if (x==2){xo="PAPER";};
if (x==3){xo="SCISSORS";};
if (y==1){yo="ROCK";};
if (y==2){yo="PAPER";};
if (y==3){yo="SCISSORS";};
System.out.println("Player 1 = "+xo+" ("+x+")");
System.out.println("Player 2 = "+yo+" ("+y+")");
if (x==1&&y==1){System.out.println("Score = Tie");}
else if (x==2&&y==2){System.out.println("Score = Tie");}
else if (x==3&&y==3){System.out.println("Score = Tie");}
else if (x==1&&y==3){System.out.println("Score = Player 1 win");}
else if (x==2&&y==1){System.out.println("Score = Player 1 win");}
else if (x==3&&y==2){System.out.println("Score = Player 1 win");}
else if (x==3&&y==1){System.out.println("Score = Player 2 win");}
else if (x==1&&y==2){System.out.println("Score = Player 2 win");}
else if (x==2&&y==3){System.out.println("Score = Player 2 win");}

}
}

# data[].attributes.headline
rock paper scissors ( 1 player version )

# data[].attributes.subject
rock paper scissors ( 1 player version )

# data[].attributes.body
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner nom = new Scanner(System.in);

System.out.println("1 = ROCK, 2 = PAPER, 3 = SCISSORS ");
System.out.print("Player, enter your number from 1-3 : ");
int x = nom.nextInt();
int y = (int)(Math.random()*3+1);
String xo ="";
String yo ="";
if (x==1){xo="ROCK";};
if (x==2){xo="PAPER";};
if (x==3){xo="SCISSORS";};
if (y==1){yo="ROCK";};
if (y==2){yo="PAPER";};
if (y==3){yo="SCISSORS";};
System.out.println("Player = "+xo+" ("+x+")");
System.out.println("Computer = "+yo+" ("+y+")");
if (x==1&&y==1){System.out.println("Score = Tie");}
else if (x==2&&y==2){System.out.println("Score = Tie");}
else if (x==3&&y==3){System.out.println("Score = Tie");}
else if (x==1&&y==3){System.out.println("Score = Player win");}
else if (x==2&&y==1){System.out.println("Score = Player win");}
else if (x==3&&y==2){System.out.println("Score = Player win");}
else if (x==3&&y==1){System.out.println("Score = Computer win");}
else if (x==1&&y==2){System.out.println("Score = Computer win");}
else if (x==2&&y==3){System.out.println("Score = Computer win");}

}
}

# data[].attributes.body
public static void main(String[] args) {
int x = (int)(Math.random()*3+1);
int y = (int)(Math.random()*3+1);
String xo ="";
String yo ="";
if (x==1){xo="PAPER";};
if (x==2){xo="ROCK";};
if (x==3){xo="SCISSORS";};
if (y==1){yo="PAPER";};
if (y==2){yo="ROCK";};
if (y==3){yo="SCISSORS";};
System.out.println("Cikgu = "+xo+" ("+x+")");
System.out.println("Hannah = "+yo+" ("+y+")");
if (x==1&&y==1){System.out.println("Win = Tie");}
else if (x==2&&y==2){System.out.println("Win = Tie");}
else if (x==3&&y==3){System.out.println("Win = Tie");}
else if (x==1&&y==2){System.out.println("Win = Cikgu");}
else if (x==2&&y==3){System.out.println("Win = Cikgu");}
else if (x==3&&y==1){System.out.println("Win = Cikgu");}
else if (x==2&&y==1){System.out.println("Win = Hannah");}
else if (x==1&&y==3){System.out.println("Win = Hannah");}
else if (x==3&&y==2){System.out.println("Win = Hannah");}

}
}

# data[].attributes.body
class Main {
public static void main(String[] args) {
int x = (int)(Math.random()*10);
int y = (int)(Math.random()*10);
System.out.println("x = "+x);
System.out.println("y = "+y);
System.out.println("Min = "+Math.min(x,y));
System.out.println("Max = "+Math.max(x,y));
System.out.println("Random = "+(int)(Math.random()*10));
}
}

# data[].attributes.body
public class Main {
public static void main(String[] args) {
for (int a = 4; a<=16;a=a+3)
System.out.print(a+" ");

}
}

# data[].attributes.body
public class Main {
public static void main(String[] args) {

int a=1;
do { System.out.println(a);
a=a+1;
} while (a<=10);
}
}

# data[].attributes.body
public class Main {
public static void main(String[] args) {

int a=1;
while (a<=10){
System.out.println(a);
a=a+1;
}

}
}

# data[].attributes.body
public class Main {
public static void main(String[] args) {

for (int a=1;a<=10;a=a+1){ System.out.println(a);
}

}
}

# data[].attributes.body
public class Main {
public static void main(String[] args) {
System.out.println("Senaraikan nombor genap antara 5 hingga 25 ");
for (int a=6;a<25;a=a+2){
System.out.println(a);
}
}
}

# data[].attributes.body
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner bil = new Scanner(System.in);
System.out.println("Nama: ");
String nama = bil.nextLine();
System.out.println("Bilangan: ");
int bil1 = bil.nextInt();
for (int a=1;a<bil1+1;a=a+1){
System.out.println(nama);
}
}
}

# data[].attributes.body
public class Main {
public static void main(String[] args) {
for (int a=0;a<13;a=a+1){
System.out.println(a + " x 7 = " + a*7);
}
}
}

# data[].attributes.body
public class Main {
public static void main(String[] args) {
for (int a=36;a>20;a=a-3){
System.out.println(a);
}
System.out.println("Tamat");
}
}

# data[].attributes.body
public class Main {
public static void main(String[] args) {
for (int a=13;a<24;a=a+2){
System.out.println(a);
}
System.out.println("Tamat");
}
}

# data[].attributes.body
public class Main {
public static void main(String[] args) {
for (int a=23;a>2;a=a-4){
System.out.println(a);
}
System.out.println("Tamat");
}
}

# data[].attributes.body
public class Main {
public static void main(String[] args) {
for (int a=3;a<19;a=a+3){
System.out.println(a);
}
System.out.println("Tamat");
}
}

# data[].attributes.body
public class Main {
public static void main(String[] args) {
for (int a=3;a<12;a=a+2){
System.out.println(a);
}
System.out.println("Tamat");
}
}

# data[].attributes.body
public class Main {
public static void main(String[] args) {
for (int a=30;a>4;a=a-5){
System.out.println(a);
}
System.out.println("Tamat");
}
}

# data[].attributes.body
public class Main {
public static void main(String[] args) {
for (int a=0;a<6;a=a+1){
System.out.println(a);
}
System.out.println("Tamat");
}
}

# data[].attributes.body
public class Main {
public static void main(String[] args) {
for (int a=20;a>9;a=a-2){
System.out.println(a);
}
System.out.println("Tamat");
}
}

# data[].attributes.body
public class Main {
public static void main(String[] args) {
for (int a=19;a>3;a=a-3){
System.out.println(a);
}
System.out.println("Tamat");
}
}

# data[].attributes.body
public class Main {
public static void main(String[] args) {
for (int a=3;a<14;a=a+2){
System.out.println(a);
}
System.out.println("Tamat");
}
}

# data[].attributes.body
import java.util.Scanner;

public class Main {
public static void main(String[] args) {
Scanner nom = new Scanner(System.in);
System.out.println("Masukkan nombor dari 1-7 : ");
int no = nom.nextInt();
switch (no){
case 1 : System.out.println("Isnin");break;
case 2 : System.out.println("Selasa");break;
case 3 : System.out.println("Rabu");break;
case 4 : System.out.println("Khamis");break;
case 5 : System.out.println("Jumaat");break;
case 6 : System.out.println("Sabtu");break;
case 7 : System.out.println("Ahad");break;
default: System.out.println("Masukkan 1-7 sahaja !");break;
}
}
}

# data[].attributes.body
public class Main {
public static void main(String[] args) {
int no = 3;
switch (no){
case 1 : System.out.println("Isnin");break;
case 2 : System.out.println("Selasa");break;
case 3 : System.out.println("Rabu");break;
case 4 : System.out.println("Khamis");break;
case 5 : System.out.println("Jumaat");break;
case 6 : System.out.println("Sabtu");break;
case 7 : System.out.println("Ahad");break;

}
}
}

# data[].attributes.body
import java.util.Scanner;

public class Main {
public static void main(String[] args) {
Scanner umur = new Scanner(System.in);
System.out.println("Masukkan umur anda : ");
int umur1 = umur.nextInt();
if (umur1 < 12)
{System.out.println("Anda kanak-kanak riang. ");}
else if (umur1 >= 12 && umur1 < 18)
{System.out.println("Tahniah, anda masih remaja. ");}
else if (umur1 > 17)
{System.out.println("Kesian, anda dah dewasa.");}

}
}

# data[].attributes.body
import java.util.Scanner;

public class Main {
public static void main(String[] args) {
Scanner bmi = new Scanner(System.in);
System.out.println("Masukkan berat anda (kg) : ");
double berat = bmi.nextDouble();
System.out.println("Masukkan tinggi anda (m) : ");
double tinggi = bmi.nextDouble();
double bmi1 = (berat/(tinggi*tinggi));
System.out.println("Bmi anda ialah : " + bmi1 );
if (bmi1 < 18.5)
{System.out.println("Anda underweight. ");}
else if (bmi1 >= 18.5 && bmi1 < 25)
{System.out.println("Anda normal weight. ");}
else if (bmi1 >= 25 && bmi1 < 31)
{System.out.println("Anda overweight. ");}
else if (bmi1 > 31)
{System.out.println("Anda obese. ");}

}
}

# data[].attributes.body
import java.util.Scanner;

public class Main {
public static void main(String[] args) {
Scanner luas = new Scanner(System.in);
System.out.println("Masukkan jejari bulatan anda (cm) : ");
double jejari = luas.nextDouble();
System.out.println("Luas bulatan anda ialah : " + 3.142*jejari*jejari + "cm²" );
System.out.println("Isipadu sfera anda ialah : " + (4/3)*3.142*jejari*jejari*jejari + "cm³");

}
}

# data[].attributes.body
import java.util.Scanner;

public class Main {
public static void main(String[] args) {
Scanner bmi = new Scanner(System.in);
System.out.println("Masukkan berat anda (kg) : ");
double berat = bmi.nextDouble();
System.out.println("Masukkan tinggi anda (m) : ");
double tinggi = bmi.nextDouble();
System.out.println("Bmi anda ialah : " + berat/(tinggi*tinggi) );

}
}

# data[].attributes.body
import java.util.Scanner;

public class Main {
public static void main(String[] args) {
Scanner exam = new Scanner(System.in);
System.out.println(" Masukkan markah subjek pertama anda : ");
int markah1 = exam.nextInt();
System.out.println(" Masukkan markah subjek kedua anda : ");
int markah2 = exam.nextInt();
System.out.println(" Masukkan markah subjek ketiga anda : ");
int markah3 = exam.nextInt();
System.out.println(" Purata markah anda ialah : " + (markah1+markah2+markah3)/3 );

}
}

# data[].attributes.body
import java.util.Scanner;

public class Main {
public static void main(String[] args) {
Scanner nilai = new Scanner(System.in);
System.out.println(" Masukkan nama barang anda : ");
String nama = nilai.nextLine();
System.out.println(" Masukkan harga barang anda : ");
double harga = nilai.nextDouble();
System.out.println(" Masukkan bilangan barang anda : ");
int bil = nilai.nextInt();
System.out.println(" Total harga " + nama + " yang anda beli ialah : RM" + harga*bil );

}
}

# data[].attributes.body
import java.util.Scanner;
Scanner nilai = new Scanner(System.in);
String nama = nilai.nextLine();
int umur = nilai.nextInt();
double harga = nilai.nextDouble();

# data[].attributes.body
import java.util.Scanner;

public class Main {
public static void main(String[] args) {
Scanner nama = new Scanner(System.in);
System.out.println("Masukkan nama anda: ");
String nama1 = nama.nextLine();
System.out.println (" Nama anda ialah : " + nama1);
Scanner umur = new Scanner(System.in);
System.out.println(" Masukkan umur anda : ");
int umur1 = umur.nextInt();
System.out.println("Umur anda ialah : " + umur1 + " tahun");
}
}

# data[].attributes.body
i j.u.S
perut sakit virus membiak (Sekotak Anggurs[])

# data[].attributes.body
import java.util.Scanner;

class Main {
public static void main(String[] args) {
Scanner umur = new Scanner(System.in);
System.out.println("Sila masukkan umur");
int age = umur.nextInt();
System.out.println("Umur anda: "+age);
}
}