+ 1
need help
hi i donât understand how int works
2 RĂ©ponses
+ 2
jaylaađđœđž
int - Integer (store only whole value without decimal)
It is a datatype to how data value would be store in the variable.
Example: int x = 7;
System.out.println(x);
output: 7
Here x is a variable,
7 is whole value(without decimal),
int x = 7.77;
System.out.println(x);
output: 7
And here .77 is omitted.
float,double,int,string are data types.
float x = 7.77
double x = 7.24527181.
0
Where is the question!