// Arup Guha
// 3/13/2024
// Solution to COP 3502H Exam 2 Question 9

#include <stdio.h>

// Solution to Question 9...
void printnext(int n) {

    // First we add.
    for (int i=1; i<10; i++) printf("%d ", n+i);

    // Next multiply.
    for (int i=2; i<10; i++) printf("%d ", n*i);

    // Finally concatenate. I'll also accept the cheap trick of %d%d and n,i...
    for (int i=0; i<10; i++) printf("%d ", 10*n+i);
    printf("\n"); //optional;
}

int main() {
	printnext(13);
	return 0;
}
