Which of the following statements should be used to validate that a number input by the user into a variable namedWidgetsis an integer value?
a. ```While Widgets != Widgets
Write “Please enter an integer value:”
Input Widgets
End While```
b. ```While Int(Widgets) != Widgets
Write “Please enter an integer value:”
Input Widgets
End While```
c. ```Repeat
Write “Please enter an integer value:”
Input Widgets
End Repeat```
d. ```While Widgets > 0
Write “Please enter an integer value:”
Input Widgets
End While```
B
Computer Science & Information Technology
You might also like to view...
Face-to-face conversations or telephone calls are examples of ________ communication
Fill in the blank(s) with correct word
Computer Science & Information Technology
____ are explanatory remarks made in a program.
a. Comments b. Strings c. Escape sequences d. Classes
Computer Science & Information Technology