https://github.com/ozzies-code/sentinelvalue
In this C program, we work with a Sentinel Value or Flag value: Flag. A While loop is used on this value and while this Alert value is maintained, the program will continue in execution.
https://github.com/ozzies-code/sentinelvalue
Last synced: 2 months ago
JSON representation
In this C program, we work with a Sentinel Value or Flag value: Flag. A While loop is used on this value and while this Alert value is maintained, the program will continue in execution.
- Host: GitHub
- URL: https://github.com/ozzies-code/sentinelvalue
- Owner: ozzies-code
- Created: 2023-07-30T22:40:40.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-07-30T22:48:29.000Z (almost 2 years ago)
- Last Synced: 2025-01-21T12:13:08.586Z (4 months ago)
- Language: C
- Size: 21.5 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# SentinelValue
In this C program, we work with a Sentinel Value or Flag value: Flag. A While loop is used on this value and while this Alert value is maintained, the program will continue in execution.
#include
#includeint main(int argc, char *argv[])
{
int flag = 1, contador = 0;while(flag)
{
contador++;
if(contador > 10)
break;
}
printf("Contador: %d \n", contador);
system("PAUSE");
return 0;
}