#include<stdio.h>
int main()
{
int i = 0;
int sum = 0;
int n = 2;
for(i = 0; i < 5; i++)//There are five items in total, loop 5 times
{
sum += n;//Find the first i term and
n = 2 + n*10;// 2+20 2+220
}
printf("%d\n", sum);
return 0;
}
int main()
{
int i = 0;
int sum = 0;
int n = 2;
for(i = 0; i < 5; i++)//There are five items in total, loop 5 times
{
sum += n;//Find the first i term and
n = 2 + n*10;// 2+20 2+220
}
printf("%d\n", sum);
return 0;
}