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 |
1.Coding in cl to send an message? 2..What is turnover and use? What are the different levels?
can i use UPDDTA command in rpg program in which contains a file
can any body correct the following code? Following a procedure which returns the maximum of two numbers.Correct the following code. P GETMAX B D GETMAX PI D NUM1 35 0 D NUM2 45 0 C IF NUM1 > NUM2 C RETURN NUM1 C ELSE C RETURN NUM2 C ENDIF P GETMAX E
CAN WE READ RECORDS WITHOUT USING SETLL,READ,CHAIN IN RPG?
I know whole thing ab't Arrays related to declaration..can anyone tell me what exactly use of array or anyone faced a situation where he found use of array must....
What is Multi Occurrence Data Structure(MODS)?
program to find the number of objects used in a given program through a display.
IN RLU what are the record level keyword is used?
1.I have a Batch job, Running for 4 hours, i want to reduce the executing time to 2 hours what should you do?
Can we found a record existance in a file w/o reading the file?
6 Answers Traitsys Technologies,
how to retrieve RRN value in RPGLE program
How we will read call stack?