Hi,
The scope of the local variables is limited to the subroutines, forms, class methods,etc.
1st the number is printed as expected.
Then because of the form the alphabets are printed.
Then again the control comes back to the main program and proceeds with the code written after the perform.
Regards