QUESTION IMAGE
Question
question: 1
what function do you need to call to ask the user of the program to enter text?
○ readline
○ readin
○ text
○ console.log
question: 2
to ask the user of the program for a number, which function should you use?
○ readline
○ readint
○ readfloat
○ both readint and readfloat are for numbers.
Response
Question 1
Brief Explanations
readLineis used to read user - entered text (a line of input).readInis not a standard function for reading text input in typical programming contexts.textis not a function for reading input.console.logis used to output text, not to read input.
Brief Explanations
readIntis used to read integer numbers, andreadFloatis used to read floating - point numbers. Both of these functions are designed to handle different types of numerical input from the user.readLineis for reading text, not numbers.
Snap & solve any problem in the app
Get step-by-step solutions on Sovi AI
Photo-based solutions with guided steps
Explore more problems and detailed explanations
A. readLine