/**************************************************************************** * positive1.c * * Computer Science 50 * David J. Malan * * Demands that user provide a positive number. * * Demonstrates use of do-while. ***************************************************************************/ #include #include int main(void) { // loop until user provides a positive integer int n; do { printf("I demand that you give me a positive integer: "); n = GetInt(); } while (n < 1); printf("Thanks for the %d!\n", n); }