/* La sentencia while
Sintaxis:
while(condicion){
instrucciones;
}
*/
// Mostrar los 10 primeros numeros en pantalla
#include<stdio.h>
int main(void)
{
printf("sentencia while.\n");
printf("Jennifer Hernandez Disz Barriga\n");
printf("5A\n");
printf("11 de Noviembre del 2026\n");
int i;
i = 1;
while(i<=10)
{
printf("%i.\n",i); // 1 2 3 4 5 6 7 8 9 10 - 11
i++;
}
return 0;
}
To embed this project on your website, copy the following code and paste it into your website's HTML: