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 compute verb? How is it used?
How do you reference the following file formats from cobol programs?
How do you get the data to code the BMS macro?
1.give the details about WHEN OTHER. 2. how many form are available in evaluate.
What is the difference between Structured COBOL Programming and Object Oriented COBOL programming?
Give some examples of command terminators?
When is inspect verb is used in cobol?
Can we redefine the field of x(200) to less than 200?
how do you reference the esds vsam file formats from cobol programs
how do you reference the printer file formats from cobol programs
What are the different rules to perform a Search?
What is the local-storage section?
What is the default value(s) for an initialize? What keyword will allow for an override of the default?
how to access the file from prodution from changeman tool and to submit a file to production
Name some of the examples of COBOl 11?