View previous topic :: View next topic
|
Author |
Message |
rsm_deepak
New User
Joined: 06 Apr 2005 Posts: 30 Location: visakhapatnam
|
|
|
|
Hi All,
can I know How many tims does para A will be performed ?
05 ws-a pic 9(3) value 100.
.................
PD.
............................
Perform A ws-a times.
A.
............
............
Move 200 to ws-a.
............
End-A. |
|
Back to top |
|
|
prav_06 Warnings : 1 Active User
Joined: 13 Dec 2005 Posts: 154 Location: The Netherlands
|
|
|
|
Rsm_deepak,
I think this would be an interview question a very basic one c u r initianizing the value of a variable as 100 and performing a para
Perform A ws-a times.
this statement will make para a to perform 100 times only , this is because u r re-initializing the variable only inside the para which would not make an impact on performing the para.
Cheer's.
Thamilzan. |
|
Back to top |
|
|
sachin_star3 Warnings : 1 New User
Joined: 30 Sep 2006 Posts: 78 Location: pune
|
|
|
|
yes your correct
this para execute only 100time
remember some point always when you solving this type of question
that 1) perform n times: then it peforms n times,its value cant change
2) perform vaying i from 1 by 1:this time the value can be chenge the loop dependent on inner value defined in paragraph.
correct me if wronge
-sachin borase
pune |
|
Back to top |
|
|
|