luc039.c
Problem Statement
luc039.c
Population of a town today is 100000. The population has increased steadily at the rate of 10% per year for last 10 years. Write a program to determine the population at the end of each year in the last decade.
Source Code
c
#include <stdio.h>
int main()
{
int i, population = 100000;
printf("Present year : %d\n", population);
for (i = 1; i <= 10; i++)
{
population /= 1.10;
printf("%d year ago : %d\n", i, population);
}
return 0;
}1
2
3
4
5
6
7
8
9
10
11
12
2
3
4
5
6
7
8
9
10
11
12
● Author - Amit Dutta · Updated - 12 Dec 2025