Tutorial 10: While Loop in C language

Опубликовано: 10 Сентябрь 2022
на канале: Hexnbit
65
4

Let us get started with While Loop :

▶️A while loop is a control structure that keeps executing its body repeatedly as long as the specified condition remains true. The loop counter is initialized outside the loop and updated inside the body of the loop.

➡️Initialization Expression:
This expression use to initialize or define the starting value for the loop counter.

➡️Conditional Expression:
This expression use to test the loop counter to determine whether its value is reached the desired number of repetitions. If the condition evaluates to true then body of loop will be executed.

➡️Update Expression:
This expression update the value of loop counter each time the body of the loop has been executed by incrementing or decrementing the loop variable by some value.


🌐 C/C++Programming Related Courses:
Foundation Course: https://www.hexnbit.com/product/found...


✨ HEXNBIT Social Media :

Facebook:   / hexnbit  
Instagram:   / hexnbit  
Twitter:   / hexnbit_life​  
YouTube:    / hexnbit  

🎓 Other Courses:
Visit : https://www.hexnbit.com/

About us: Hexnbit provides one-stop solutions for the students & working professionals in Skill development programs. The platform not only provides subject expertise to the candidates but also, give them industry exposure to apply their learning analytically in a practical real-world.