Online Assignment
Question 1:
Write a complete C program and determine the outputs. Let i = 0 and number = 20.
while(i <= number)
{
sum += i;
i++;
}
Question 2:
Write a part of C program to display odd numbers from 1 to 50 using commands.
a. while
b. do...while
Question 3:
Given for a = 10; a < 20; a++, write a code to "break" or stop this program when a > 15.
Question 4:
Using "continue" feature, write a program to show the output 0, 2, 4, 8, 10, 14 with the missing values being 6 and 12.