22.1k views
2 votes
Which is not a C repetition statement?

a) while

b) do…while

c) for

d) do…for

User Stas Jaro
by
7.0k points

1 Answer

3 votes

Answer:

d) do..for

Step-by-step explanation:

In C there are 3 types of loops.

1) For Loop

for(int i=0; i<10; i++){

cout<<i;

}

2) While Loop

int i=0;

while(i<10){

cout << i;

i++;

}

3) Do While Loop

int i=0;

do {

cout<< i;

i++;

} while(i<10);

User Dario Brux
by
6.9k points