/*
    NEXT WEEK HOMEWORK - FOR LOOP ONLY
    ----------------------------------
    Program: Multiplication table
    Use ONLY a for loop. Ask the user for a number,
    then print that number x 1, x 2, ... x 10.
*/

#include <stdio.h>

int main(void) {
    int n;
    int i;

    printf("Enter a number: ");
    scanf("%d", &n);

    printf("\nTable of %d:\n", n);

    for (i = 1; i <= 10; i++) {
        printf("%d x %d = %d\n", n, i, n * i);
    }

    return 0;
}
