0
is there something wrong? explain to me
class Introduction { public static void main(String args[]) { byte x=50.5; System.out.println("Nilai dari variabel x= "+x); } }
5 Answers
+ 4
double x = 50.5;
or
byte x = 50;
+ 4
The byte type can store integer numbers between -127 and +128
If you want to have decimals, then use float or double.
+ 3
Oh, I see...
I understand ... thank you very much đđ
+ 2
How then?
0
Nasywa Putri Kamila like this double a=5.03373d;
float a= 4.433f;