Download as pdf or txt
Download as pdf or txt
You are on page 1of 1

Lab 1

1. Find how many times the statement in the following code segment in C is
executed:
A=5
do
{
statement;
A = A + 1;
} while (A < 10);

2. Write the code C in above problem using a for loop

You might also like