diff options
Diffstat (limited to 'CST116-Ch11-Debugging/CST116-Midterm-Bold-Demchig.cpp')
| -rw-r--r-- | CST116-Ch11-Debugging/CST116-Midterm-Bold-Demchig.cpp | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/CST116-Ch11-Debugging/CST116-Midterm-Bold-Demchig.cpp b/CST116-Ch11-Debugging/CST116-Midterm-Bold-Demchig.cpp new file mode 100644 index 0000000..29a40b2 --- /dev/null +++ b/CST116-Ch11-Debugging/CST116-Midterm-Bold-Demchig.cpp @@ -0,0 +1,29 @@ +/* +DEMCHIG BOLD +MIDTERM EXAM +*/ + +#include <iostream> + +using std::cin; +using std::cout; +using std::endl; + +int main() { + + int array[10]; + int class_number = 0; + char name; + float gpa = 0; + + cout << "Please enter class number: " << endl; + for (int i = 0; i < 10; i++) + { + cin >> array[i]; + } + + cout << "Class number: " << array; + + + return 0; +}
\ No newline at end of file |