/* hw0_orig.c -- CSE142 Autumn 2000 * Richard Anderson, Martin Dickey */ #include /* Get two integers from the user, and then print their product */ int main(void) { int i, j; /* input values typed by the user */ char ch; /* extra input character */ /* Prompt for first integer and get it from the keyboard. */ printf("Please enter an integer: "); scanf ("%d", &i); /* Prompt for second integer and get it. */ printf("Please enter another integer: "); scanf ("%d", &j); /* Print both integers and their product */ printf("The value of the product %d * %d is %d.\n", i, j, i*j); /* Wait until the user is ready to end the program */ printf ("Type another character and enter to end the program\n"); scanf (" %c", &ch); return 0; }