Computer Science, asked by Jungkookieluv, 1 day ago

Give the appropriate function of the Scanner class which is used to a) Accept an int data type. b) Accept an float data type.​

Answers

Answered by samarthkrv
0

Answer:

1) int x = sc.nextInt();

2) float f = sc.nextFloat();

Explanation:

Similar questions