/* File: while3.c Testing out while loops. */ #include int main() { int i, begin, end ; printf("This program prints out the 17 times table.\n") ; printf("Enter first value in table: ") ; scanf("%d", &begin) ; printf("Enter last value in table: ") ; scanf("%d", &end) ; i = begin ; // very important to initialize while (i <= end) { printf("17 time %d is %d\n", i, 17*i) ; i = i + 1 ; } printf("TA DA!\n") ; return 0 ; }