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 / dsfd
a=10,b=6 and c= 10
| Is This Answer Correct ? | 2 Yes | 3 No |
Post New Answer View All Answers
Write a program to enter and display the names of students in a class using the occurs clause.
What is the difference between PIC 9.99 and PIC9v99?
How do you code cobol to access a parameter that has been defined in jcl? And do you code the parm parameter on the exec line in jcl?
How to use the same COBOL program in Batch and CICS on lines? explain with an example
What is the difference between a binary search and a sequential search what are the pertinent cobol?
Which division and paragraphs are mandatory for a COBOL program?
How to remove the spaces at the end of each record in the output file of variable length, via cobol program?
How can i load all the data from a file to Table (array) in cobol.How i manage the occurs clause with out reading the file.Any options avilable ? Please can any one help me it is urgent?
Why occurs cannot be used in 01 level in COBOL?
What is perform what is varying?
What are all the divisions of a COBOL program?
How many bytes S(8) comp field occupy and its maximum value?
What is link edit in cobol?
Write the code implementing the perform … varying.
What is amode(24)?