Other contributors have said "How to creat the do-while statement in programing in c?" is the same question as "How to create the do-while statement in programing in c?" If you believe that these are not asking the same thing and should be answered differently, click here

How to create the do-while statement in programing in c?

Answer:
A do-while statement in a c programing can be create as per the following syntax-


do
{
.................................;
.................................; SETS OF THE EXECUTABLE STATEMENTS
..................................;
} while(condition);



as per the above mentioned syntax it will work.it means that 1st the set of executable statements will execute atleast once before checking for the condition and then it will go to check for the condition mentioned within the while.it means suppose if the condition given inside the while is incorrect then also the executable part will execute atleast once and after executing that it will go to while and will check for the conditon.If the condition will be true then it will execute till the condition exists otherwise will come out of the loop only.


HERE CARE SHOULD BE TAKEN THAT AFTER THE WHILE WE SHOULD PUT SEMICOLON.BUT IN ONLY WHILE LOOP WE DONT USE THAT.
First answer by Smruti Ranjan Mishra. Last edit by Smruti Ranjan Mishra. Contributor trust: 1 [recommend contributor recommended]. Question popularity: 1 [recommend question].