Having trouble with basic code


I have just started using logical operators and require some guidance. Basically Im trying to generate some values, not in an array though just variables.

This is basically what Im trying to do

for(i=0;i<=a;i++) {
x*=(some formula)*Y*

Then what I want to happen is the following calculations to take place and variable created;
x1=(some formula)*Y1
x2=(some formula)*Y2
x3=(some formula)*Y3

Can anyone provide assistance on my problem Im not sure where to start.