Tutorials Programme

By December 9, 2010 C

Loops Tutorials

 Example  Example While Loop

#include <stdio.h>
int main()
{
int count;
count = 0;
while (count < 4)
{
printf(“The value of count is %dn”, count);
count += 1;
}
return 0;
}
/* Result
The value of count is 0
The value of count is 1
The value of count is 2
The value of count is 3
*/

Leave a Reply

− 1 = 9

Open chat
💬 Need help?