adplus-dvertising
frame-decoration

Question

How many times compsciedu will be printed?
#include <stdio.h>
int main()
{
    int i = -5;
    while (i <= 5)
    {
        if (i >= 0)
            break;
        else
        {
            i += 1;
            continue;
        }
        printf("compsciedu");
    }
    return 0;
}

a.

5 times

b.

10 times

c.

0 times

d.

Infinite times

Answer: (c).0 times

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. How many times compsciedu will be printed?