From 754384ebf9d5017d5d6b26ede52a55173d4ad3b9 Mon Sep 17 00:00:00 2001 From: Shantanu Sharma Date: Sun, 18 Nov 2018 18:44:27 +0530 Subject: [PATCH] Incomplete info while explaining while loop (#22265) --- guide/english/c/loops/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/guide/english/c/loops/index.md b/guide/english/c/loops/index.md index a0a62c7725..8e5000a268 100644 --- a/guide/english/c/loops/index.md +++ b/guide/english/c/loops/index.md @@ -37,7 +37,7 @@ int main(void) { return 0; } ``` -While the statement within the while loop is true, the content within the brackets will be run. When the program hits the `while(my_number)`, it checks the statement within the parenthesis. If that statement is false, it won't run the while loop. Instead, it will skip over the code between the two brackets and will pick up where it left off. +While the statement within the while loop is true, the content within the brackets will be run. When the program hits the `while(my_number!=10)`, it checks the statement within the parenthesis. If that statement is false, it won't run the while loop. Instead, it will skip over the code between the two brackets and will pick up where it left off. If the statement is true, the code within the brackets will be run. Once the code within the brackets has run, the statement within the parenthesis will be checked again. Just like before, if the statement is true, the code will be run, if it's false, the code will be skipped.