Condition Control loop in C
Condition Control loop
💥Condition Control loop:- Condition Control loop are those loop , which perform a particular task again and again while a particulat condition is true.
There are two types of Condition Control loop:-
(i) While loop
(ii) Do while loop
Example:-
Program: To print 4 tables.
#include<stdio.h>
#include<conio.h>
main()
{
int i=4;
clrscr();
while(i<=40)
{
printf("%d\n",i);
i+=4;
}
getch();
}
Output:-
4
8
12
16
20
24
28
32
36
40
Thank you for reading....
No comments
Post a Comment