[] how much is the result of the following statement? hasil=100.00/3; hasil=100/3; hasil=100%3;
TI
akakarma
Pertanyaan
[] how much is the result of the following statement?
hasil=100.00/3;
hasil=100/3;
hasil=100%3;
hasil=100.00/3;
hasil=100/3;
hasil=100%3;
1 Jawaban
-
1. Jawaban owenizedd
1. 33.33333
2. 33
3. 1
Alasan: Untuk nomor 1. 100.00/3 (floating point) memiliki koma, dalam TI hal ini disebut tipe data float. maka hasil 33.333333
Untuk nomor 2. Tipe data integer, dibagi 3 = 33 (pembulatan)
Untuk nomor 3. 100 mod 3= 1