i need the code for this program in cobol.
2 + 1 = 3
4+3=7
6+5=11
8+7=15
10+9=19
Answer Posted / xxx
PERFORM VARYING X FROM 1 BY 1 UNTIL WS-ANS = 19
COMPUTE WS-ANS = (2 * X) + ((2 * X) - 1)
DISPLAY WS-ANS
END-PERFORM
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What is the difference between PIC 9.99 and 9v99 in COBOL?
How arrays can be defined in COBOL?
How did the release of cobol/370 version 1.3 improve the performance of release 1.1?
In COBOL, what is the different between index and subscript?
What is the default value(s) for an initialize? What keyword will allow for an override of the default?
For rewrite, why is it mandatory that file needs to be opened?
Write some characteristics of cobol as means of business language.
What are the pertinent COBOL commands?
i was faced one question- i have value -00001234.56 Suppress the zeroes and the output should be -1234.56 But Not - 1234.56 spaces should not be available after suppressing the zeroes. logic in jcl and cobol?
Hi pls anybody tell me about " ANALYSIS DOCUMENT PREPARATION AND ESTIMATION OF TASK " (in real time project)."I want to update a sequential file in my project" for that purpose i need both structures i mean analysis document and estimation of task.
How can we find that module can be called – whether DYNAMICALLY or STATICALLY?
What is rmode(24)
EXPLAIN MAIN FRAME TESTING PROCESS...HOW TO FIX THE MAINFRAME BUGS?
How do you get the data to code the BMS macro?
Name the sections present in data division.