#include <stdio.h>

int main() {
    /*
    int i;
    i = 1;
    while(i<=10){
        printf("hello world! %d\n", i);
        i++;
    }

    i = 10;
    while(i>=1){
        printf("hello world! %d\n", i);
        i--;
    }

    i = 1;
    do{
        printf("hello world! %d\n", i);
        i++;
    }while(i<=10);
    */

    /*
    int i = 0;
    while(1){
        printf("hello world! %d\n", i);
        i++;
    }
    */
    
    int i, n;
    scanf("%d", &n);
    i = 1;
    while(i<=9){
        printf("%d x %d = %d\n", n, i, n*i);
        i++;
    }

    int num, a, b;
    scanf("%d", &num);
    i = 1;
    while(i<=num){
    	scanf("%d %d", &a, &b);
    	printf("%d\n", a+b);
    	i++;
    }
    
}

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: