codeHs user input

codeHs user input

CodeHS user input uses a one line format.

THat format is:

datatype varname = readDatatype(“prompt”);

This may diifer if you are making a string variable in which case instead of readdatatype it is readLine.

An example of user input being used is

int l = readInt(“Eneter a positive interger”);

This information is also shown/explained in the docs of codeHS when you are making a program.

One thought on “codeHs user input

Comments are closed.