Given the following code, what is the value of RESULT?
DName+++++++++++ETDsFrom+++To/L+++IDc.Keywords+++++++++++++
D RESULT S 5 0
C EVAL RESULT = (2 + 3 * 2) ** 2 / 2
Answers were Sorted based on User's Feedback
Answer / anuj
Agreed.. Should be 32.. see below
1. RESULT = (2 + 3 * 2) ** 2 / 2
2. RESULT = (8) ** 2 / 2
3. RESULT = 64 / 2 = 32.
Thanks.
Is This Answer Correct ? | 17 Yes | 0 No |
Suppose i am having 3 programs PgmA,pgmB,pgmC and using source debugger. At debugging time i found that pgmC having some code error..then in debug mode directly how can i debug pgmC
write an RPG program to calculate the marks of 5 students (A,B, C, D, E)in 3 different subjects (eng, math, sci) an display on the screen
How can we make use of SETLL operation in CL?
Anybody can explain the difference between SFLCLR & SFLINZ?
what is EXCEPT command in rpg and use
what was the robotech rpg?
Can we have a Physical file without any member ? Please let me know
Let?s consider a variable X of length 20. Move value ?ABC? to it.How to determine how many characters does X have?
how do I declare a minor?
In a particular program one file is used where override command is applied to a file, now this program calls another program where we want to use the same file but without override.How it can be done?
Can anybody tell me in which scenario we have to use SQLRPG .(Embeded SQL)....?
wat is meant by hidden field , why it is used?