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 ? | 18 Yes | 0 No |
what is data area and how it is used in rpg program ?
we are sending data of physical file to screen design and it is showing no record why?
1.What is the Maximum field length we can declare in RLU?? 2. What is the difference if your designing RLU using DDS and using the option 19 for the RLU??
What is the OPEN and CLOSE accesspath?
How to update physical file in rpgle without using display file?
what are the key words you must use when using a subfile?
Can an indexed file be accessed in arrival sequence in RPG?
1.Coding in cl to send an message? 2..What is turnover and use? What are the different levels?
When it is desirable to describe files Internally?
When PGMA calls PGMB for the first time PGMB executes the *INZSR. PGMB uses the RETRN operation to return to PGMA. When PGMA call PGMB the second time is the *INZSR executed?
How to code Page up and Page down in RPG for Single page subfile without using ROLLUP/ROLLDOWN in DSPF ?
how to display all the members records in a physical file without using ovrdbf?