#include #include "genlib.h" #include "simpio.h" main() { int i, j, n ; printf("Enter a number: ") ; n = GetInteger() ; /* Print out top part of the plus symbol */ for (i = 1 ; i <= n ; i++) { for (j = 1 ; j <= n ; j++) { printf(" ") ; } printf("+\n") ; } /* Print out middle row of the plus symbol */ for (i = 1 ; i <= 2*n + 1 ; i++) { printf("+") ; } printf("\n") ; /* Print out bottom part of the plus symbol */ for (i = 1 ; i <= n ; i++) { for (j = 1 ; j <= n ; j++) { printf(" ") ; } printf("+\n") ; } }