do... while loop in C
Like while loop, do-while is also a iterative statement but it tests the condition at the end of the loop body.
Syntax
initialization; do { body; updation; } while(condition);
do...while Flow Diagram

Example:
WAP to print hello 5 times using do while.#include< stdio.h > int main( ) { int i=1; do { printf("%d. Hello!!\n",i); i++; }while(i<=5); return 0; }OUTPUT:
1. Hello 2. Hello 3. Hello 4. Hello 5. Hello
Next topic is Break and Continue
Training For College Campus
We offers college campus training for all streams like CS, IT, ECE, Mechanical, Civil etc. on different technologies
like
C, C++, Data Structure, Core Java, Advance Java, Struts Framework, Hibernate, Python, Android, Big-Data, Ebedded & Robotics etc.
Please mail your requirement at info@prowessapps.in
Projects For Students
Students can contact us for their projects on different technologies Core Java, Advance Java, Android etc.
Students can mail requirement at info@prowessapps.in