What is while in c program | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
- 1

What is while in c program

7th May 2022, 1:52 AM
Narasimharao Narasimharao
3 Answers
+ 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
7th May 2022, 3:15 AM
Muhammad Galhoum
Muhammad Galhoum - avatar
+ 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.
7th May 2022, 3:02 AM
Paul K Sadler
Paul K Sadler - avatar
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; }
8th Jun 2022, 8:21 AM
Ranit Ghosh
Ranit Ghosh - avatar