Consider the following COBOL entries
05 X PIC 99 VALUE 10.
ADD 40 X TO X.
COMPUTE X = 3 * X - 40.
The result in X is
Answer Posted / muhammad abdul aleem
I doubt if 05 level number will work or not.
But if it works the here is the answer.
Add 40,x to x means X = 10 + 40 + 10 =60
then
x = 60*3 -40
x=180-40
= 140
Since X = 99 so value will be 40
Therefore, Value of X will be 40...
| Is This Answer Correct ? | 26 Yes | 0 No |
Post New Answer View All Answers
i want to learn mainframe..any websites and material to learn from basic..? my mail id : rajeswaribe2010@gmail.com
What is link edit in cobol?
What are the pertinent COBOL commands?
What is the difference between external and global variables in COBOL?
can you please let me know if there is any walkins for COBOL/PLI/DB2/IMS/JCL in pune other than IBM and ITC infotech
What are literals?
which is Best IBM Mainframe Training and Placement Institute in Ameerpet Hyderabad
Differentiate between structured cobol programming and object-oriented cobol programming.
What is redefines clause in COBOL?
Differentiate cobol and cobol-ii. (Most of our programs are written in cobolii, so, it is good to know, how, this is different from cobol)?
What do you understand by psb and acb?
What rules are followed by the search verb.
how do you reference the variable unblock file formats from cobol programs
How do get the result of your program directly on your pc?
How to use the same COBOL program in Batch and CICS on lines? explain with an example