The variable is a place in memory that is allocated to hold data that has a temporary nature, which is used only when the program is still running and removed / deleted from memory after the program ends.
Declaration Format:
TipeData namaVariabel [= inisialisasiNilaiAwal];
example:
int nilaiAbsen;
int nilaiTugas, nilaiUTS, nilaiUAS;
String firstName = "Tariq"
NamaTengah String = "Athar", LastName = "Kisan";
nilaiHuruf char = 'A';
Declaration Format:
TipeData namaVariabel [= inisialisasiNilaiAwal];
example:
int nilaiAbsen;
int nilaiTugas, nilaiUTS, nilaiUAS;
String firstName = "Tariq"
NamaTengah String = "Athar", LastName = "Kisan";
nilaiHuruf char = 'A';
0 komentar:
Posting Komentar