- 1
What is while in c program
3 Respuestas
+ 2
While is a type of loops types used to repeat any code several times and you are the person who determines this times under a specific condition
+ 1
Look for the answer in the C course on Sololearn. You have started the course. You can look for the lessons on loops. Alternatively, if you don't want to wait until you unlock the lessons, you can search on Bing or Google for the answer.
0
While is a type of loop.Just like we use for loop while can be used.
For example:-
#include <stdio.h>
int main() {
int i;
i=2;
while(i<=10) //while loop
{
printf("%d \n",i);
i+=2;
}
return 0;
}