distinguish between next int() and next float () method
Answers
Answered by
3
Explanation:
Answer: nextInt() reads the next integer value. nextFloat() reads the next float value. Both are inbuilt functions of the Scanner class.
please follow me and mark my answer as brainliest
Answered by
4
Answer:
Hi..
Explanation:
int() returns the integer value...
For eg: 12,15,16,17 etc..
Whereas float returns a floating point number that is a number with its decimal part also..
For eg: 12.9,33.0 etc
Hope it helps you
Please mark brainliest
Similar questions
Math,
4 months ago
Math,
4 months ago
Social Sciences,
9 months ago
English,
1 year ago
Math,
1 year ago