/* La sentencia while

    Sintaxis:

        while(condicion){
            instrucciones;
        }
*/

// Mostrar los 10 primeros numeros en pantalla - ascendente 
// Mostrar los 10 primero numeros en la pantalla - descendente 

#include<stdio.h>

int main(void)
{
printf("Descendentes.c\n");
printf("Jennifer Hernandez Diaz Barriga\n");
printf("5A\n");
printf("11 de Noviembre del 2026\n");
int i;
i = 10;
while(i>=0)
{
printf("%i.\n",i); // 10 9 8 7 6 5 4 3 2 1 
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: