Easy
What is the value of the variable "year" at the loop output?
int main()
{
        double height = 1.05;
        int year= 0;
        do
        {
            printf("you're too small for this ride, come back next year\n");
            year++;
            height+= 0.20;
        } while (height < 1.25);
        printf("%d",year);
        return 0;
   }
Edit
1
Community EvaluationsNo one has reviewed this question yet, be the first!
8
What is the size of a long long in C++?4
Find the sum of all even numbers in an array in C2
Write a C function to swap two integers.1
What does the following code refer to:  C:\ProgramFiles\QtCreator\text.txt ? 3
Write a C program that calculates the average of two notes.2
Write a C program to calculate the total number of sweets.5
Undefined behavior.