// Escribe un programa que escriba los múltiplos de un número leído desde teclado comprendidos entre el 1 y el 100.

#include <stdio.h>
int main() {
    int numero;
    printf("Introduce un numero: ");
    scanf("%d", &numero);

    if (numero== 0) {
        printf("El 0 no tiene multiplos entre 1 y 100.\n");
        }
    else{ printf("Los multiplos de %d entre 1 y 100 son:\n", numero);
    for (int i = 1; i <= 100; i++) {
        if (i % numero == 0) {
            printf("%d ", i);
            }
        }
    }

    return 0;
}

Embed on website

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