/** * This is a simple example program that you will modify for lab 1. */ #include /* The C input/output library */ int main() { /* C programs always start with this header */ int x; /* Declare a variable to hold the input number */ printf("Input an int: "); /* Prompt for the input value */ scanf("%d", &x); /* Input the number typed on the screen */ if (x > 0) /* Check if the number is > 0 (i.e., positive) */ printf("yes\n"); /* If so, output "yes" to the screen */ else /* If not, */ printf("no\n"); /* output "no" to the screen */ return 0; /* C main functions need to return a value */ } /* End of main program (matches the "{") */