If a person x pays RS1000/- to a company.If x joins 3 persons say x1,x2,x3 these 3 persons each person pay 1000 to the company then x will get 10% of that amount.Then x1 joins another 3 members say x4,x5,x6 now also they pay 1000 to company then x1 will get 10% of that amount(i.e x4,x5,x6).then x will get 10% of x1 amount. like this process will continue.I do this for first person will get how much money.
----------------------------------------------------------------------------------------------------------------
static void main()
{
Console.writeline(“enter no.of levels”);
Int l=convert.toint32(console.readline());
Double sum=0;
For(int i=1;i<=l;i++)
{
Double a=math.pow(3,i);
Double b=math.pow(10,i);
Double value=1000*(a/b);
Sum=sum+value;
}
Console.writeline(“Result is ”+sum);
Console.readline();
}
---------------------------------------------------------------------------------------------------------------
But i want at each level each person will get how much money