/**************************************************************************** * positives.c * * Computer Science 50 * David J. Malan * * Demands that user provide a positive number. * * Demonstrates use of do-while. ***************************************************************************/ #include int main(int argc, char *argv[]) { 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); }