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 / suputhru
I agree with Rama Krishna ans: 10
05 X PIC 99 VALUE 10.
ADD 40 X TO X. ----------- x=x+40 x=10+40 x=50
COMPUTE X = 3 * X - 40.------x=(3*50)-40 x=150-40 x=110 since x pic 99--
finally x=10
antheeeeeeeee.
| Is This Answer Correct ? | 1 Yes | 2 No |
Post New Answer View All Answers
What is rmode(any) ?
What is the difference between next sentence and continue in cobol programing language?
Whats the difference between search & search ALL?
which is Best IBM Mainframe Training and Placement Institute in Ameerpet Hyderabad
What is amode(24), amode(31), rmode(24) and rmode(any) (applicable to only mvsesa enterprise server) ?
What are the cobol coding sheets?
Define cobol?
How many sections are there in data division in COBOL?
How are the next sentence and continue different from each other?
Write the code implementing the perform … varying.
What do you understand by psb and acb?
How to read the 2nd last record of a VSAM file? (The file size is huge and we don't know the key)
What is the difference between Call and a Link?
How to get the last record in vsam file in cluster? And how can you get the ksds file records into cobol program?
Write a cobol program making use of the redefine clause.