An open API service indexing awesome lists of open source software.

https://github.com/ozzies-code/contador1

The following exercise combines the use of IF with the While loop to set the value of a counter when a variable reaches a specified value after being incremented.
https://github.com/ozzies-code/contador1

Last synced: over 1 year ago
JSON representation

The following exercise combines the use of IF with the While loop to set the value of a counter when a variable reaches a specified value after being incremented.

Awesome Lists containing this project

README

          

# contador1
The following exercise combines the use of IF with the While loop to set the value of a counter when a variable reaches a specified value after being incremented.
#include
#include

int main(int argc, char *argv[])
{
int contador = 0; /*Inicializa la condicion*/

while(contador < 5) /*condicion de prueba*/
{
contador++; /*cuerpo de bucle*/
printf(" Contador: %d \n", contador);
}
printf(" Terminado. Contador: %d \n", contador);
system("PAUSE");
return 0;
}