study the following
01 A PIC 99V0 VALUE 5
01 B PIC 9V9 VALUE 6
01 C PIC 99V9 VALUE 2.5
01 D PIC 99 VALUE 3
COMPUTE A ROUNDED B C = A+B*C/D
ON SIZE ERROR PERFORM PRINT-ERROR
the comments of A.B.C after execution of the above
statement are
a.A=10 B=0 C=10
b.A=10 B=9.9 C=9.9
c.A=10 B=0 C=9.9
d.A=10 B=6 C=10
Answer Posted / kamesh
5+6*2.5 div 3=10 so a=10,b=0 bcz truncated 1.and c= 10.
| Is This Answer Correct ? | 8 Yes | 2 No |
Post New Answer View All Answers
What is the difference between next sentence and continue in cobol programing language?
how do you reference the fixed unblock file formats from cobol programs
What the difference is between continue and next sentence?
I have a File that has duplicate records. I need only those records that occur more than thrice.?
how do you reference the variable unblock file formats from cobol programs
can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there
What type of SDLC u followed? Why?
What are the various section in data division and briefly explain them.
what is amode(24), amode(31), rmode(24) and rmode(any)?
What is Pic 9v99 Indicates in COBOL?
What is a report item?
HOw can I get the negative sign while deduct high value from low value
What rules are to be followed while using the corresponding options?
How to know whether the module is dynamical or statistical?
How arrays can be defined in COBOL?