i need the code for this program in cobol.
2 + 1 = 3
4+3=7
6+5=11
8+7=15
10+9=19
Answers were Sorted based on User's Feedback
Answer / aj
do a loop on below equation . Varying n from 1 to required
value
(2n) + (2n-1)
| Is This Answer Correct ? | 11 Yes | 2 No |
Answer / 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 |
What is different between variable length and fixed length?
I got user abend U4038 while compiling my runjcl.. can anyone help me?
sample code for read a 2nd record from last in flatfile how can do?
With in these three which one is the default one Call Reference, Call By Value, Call By Content.-Which one is default?
What is the difference between static call & Dynamic call?
COMPUTE X = A * B - C * D and COMPUTE X = (A * B) - (C * D) (a) Are not the same (b) Are same (c) Syntactically wrong (d) Will yield a run time error
I want ALL jcl ERROR cods
When would you use in-line perform?
If you were passing a table via linkage, which is preferable - a subscript or an index?
copy 100 records without using ibm utilities
Which of the following characters is NOT valid in column 7? a. - b. \ c. * d. # e. $
What are the divisions in a cobol program? Which one is the mandatory division among them?