Professional Documents
Culture Documents
Objectives:
● Usage of iterative statements
Task:
1. Write a program in C to display the sum of the series [ 9 + 99 + 999 + 9999 ...].
Sample Output:
3. Write a program in C to find the LCM (Least Common Multiple) of any two numbers. For
example, the LCM of 4 and 5 is 20:
4. Write a C program to convert a binary number into a decimal number without using array or math
library. (You can store the binary numbers as int variable for this task)
Sample Output: