+ 1

need help

hi i don’t understand how int works

3rd Dec 2021, 3:31 PM
jaylaađŸ‘đŸœđŸŒž
jaylaađŸ‘đŸœđŸŒž - avatar
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.
3rd Dec 2021, 3:40 PM
gokul b
gokul b - avatar
0
Where is the question!
3rd Dec 2021, 5:22 PM
Pranav Hirani
Pranav Hirani - avatar