/* La sentencia while

    Sintaxis:

        while(condicion){
            instrucciones;
        }
*/

// Mostrar los 10 primeros numeros en pantalla - ascendente 
// Mostrar los 10 primero numeros en la pantalla - descendente 
// Mostrar 5 asteriscos '*'

#include<stdio.h>

int main(void)
{
printf("Michelle Sanchez Santillan\n");
printf("asteriscos.c\n");
printf("5A\n");
printf("NOV.11.2026\n");
int i;
i = 1;
while(i<=5)
{
printf("*"); // *****
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: