Can anyone tell me what is “j” and “i” in this .cs code?
private void zoom_out(object sender, RoutedEventArgs e)
{
if(j>0)
{
image1.Height -= 50;
image1.Width -= 50;
j--;
i = j;
}
}
private void zoom_in(object sender, RoutedEventArgs e)
{
if(i<2)
{
image1.Height += 50;
image1.Width += 50;
i++;
j = i;
}
}
And change “j” and “i” for .vb code. It is code for zooming out and in.
I believe they are a programming concept most commonly termed ‘variables’. They are used to store application state and perform computations.