1. Write a program that will calculate the problem and stop after the condition is met.
a =number of loops (start with zero)
b =a+1
c=a+b
Condition: If c is less than 5, then the loop will continue; else, it will end
2. Print a string variable that states the number of loops required to meet the condition for Problem 1
Get Free Quote!
355 Experts Online