we have this work that asks for us to solve for the arithmetic progression, and show its output on a textbox.
this is how i started my plans..
textbox1 ask for initial value
textbox2 ask for sequence value
then after pressing compute button
sequence will be stored in an array
the sequence will be printed on the texbox3
i can't seem to find the exact keyword is there was... all i need is to print the contents of the values that will be stored in an array.
here's my scratch code:
initVal = double.Parse(textBox1.Text);
SeqVal = int.Parse(textBox2.Text);
double[] arraySeq = new double[SeqVal];
for (meow = 0; meow < SeqVal; meow++)
{
tempor += initVal;
arraySeq[meow] = tempor;
}
label3.Show();
textBox3.Show();
textBox3.Text = Convert.ToString(arraySeq[2]);