Write a series of statements that determine and display the smallest value in array t.
What will be an ideal response?
```
int smallest{t[0][0]};
for (int i{0}; i < 2; ++i) {
for (int j{0}; j < 3; ++j) {
if (t[i][j] < smallest) {
smallest = t[i][j];
}
}
}
cout << smallest;
```
You might also like to view...
The following code is meant to prompt you for integer input from the keyboard, read your input, and display it on the screen. The program compiles, but doesn’t work properly. Use gdb to find the bugs in the program. What are they? Fix the bugs, recompile the program, and execute it to be sure that the corrected version works. Show the working version of the program.
What will be an ideal response?
Database ________ are the basic parts of a database the user works with
A) grids B) objects C) keys D) views
The ________ functions provide added flexibility of multiple data ranges that can be located throughout an Excel worksheet
A) MATCH and INDEX B) SUM and AVERAGE C) VLOOKUP and HLOOKUP D) IF and COUNTIF
____ is a high-speed storage area physically located in the computer's processing unit.
A. A reserved variable B. RAM C. A register D. A stack