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