+#include <stdio.h>
+
+#include "io.h"
+
+int prompt_value(const char* msg, int* result) {
+ puts(msg);
+ int retVal = scanf("%d", result);
+ return (retVal == 1) ? 0 : 1;
+}
+
+void display_array(int* array, int size) {
+ for (int i = 0; i < size; i++) {
+ printf("value in array at index[%d]=%d\n", i, array[i]);
+ }
+}