#include <stdio.h>
int main ()
{
printf ("Introduce un número del 1 al 100: ");
int n=0;
int j=7;
scanf ("%d", &n);
printf ("%d\n", n);
for (int i=1; i<=n; i+=1)
{
if (i%7==0 || i==j)
{
printf ("Boom\n");
if (i==j)
{
j+=10;
}
} else
{
printf ("%d\n", i);
}
}
return 0;
}
To embed this project on your website, copy the following code and paste it into your website's HTML: