Monday, February 10, 2014

Section 3.3 Input and Output: Input





41006:  Write a statement that reads a word from standard input into firstWord.  Assume that firstWord has already been declared as an char array large enough to hold a 50-letter word.

firstWord = textBox.Text

40980:  Write an expression that attempts to read a double value from the TextBox textBox and stores it in a Double variable, x that has already been declared.

x = CDbl(textBox.Text)

40313:  Given an int variable datum that has already been declared, write a statement that reads an integer value from standard input into this variable.

datum = CInt(textBox.Text)

1 comment: