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
Answer Posted / 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 |
Post New Answer View All Answers
How can we know running job is batch or interactive?
How to call one program from another program in RPG? please help me with the code
what was the robotech rpg?
what is file information data structure?
explain sflclr, sflend, sfldlt, and sflcsrrrn?
can anybody help me to solve this problem. the program that i m checking display error message saying "Record format for file AJDSPFFD does not match model file and decimal error. how to solve this problem. The AJDSPFFD is snapshot the AJTLOG that is the audit trail list.
what is the use of sflnxtchg?
can you debug ile rpg program using isdb?
If my rpg program has a date field, what extra care I have to take while compiling that rpg program? If the file is keyed and I have declared the file as well as key list properly in my program. Still am getting an error message like "chain/reade operation is not allowed" what may be the case?
can I touch the array during treatments?
how do I declare a table or array in rpg iv?
can any one help in hawkeye and turnover or any change management system plzzzzz or send the documents to my mail id :gvsp.as4@gmail.com
what is *place and *auto keyword in prtf ?plz explain
what is the difference between do while and do until?
How would display prime numbers using CL program?