Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

tipe data c++

Int I;
dataKaryawan dataKar = new dataKaryawan();
myInput input1 = myInput();
System.out.println(“Berapa jumlah karyawan: ”);
dataKar.setJmlKaryawan(input1.bacaInt());
for (i-0; I<dataKar.n; i++)
{
System.out.println(“Karyawan ke- “+(i+1));
System.out.println(“Masukan NIK : “);
dataKar.setNIK(I, bacaString());
System.out.println(“Masukan Nama : “);
dataKar.setNama(I, bacaInt());
System.out.println(“Masukan Gaji Pokok : “);
dataKar.setGapok(I, input1.bacaInt());
}
dataKaryawan.tampilData();
}
}
 
PREVIOUS NEXT
Tagged: #tipe #data
ADD COMMENT
Topic
Name
1+4 =