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 / 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 |
Post New Answer View All Answers
How arrays can be defined in COBOL?
What is amode(24), amode(31), rmode(24) and rmode(any) (applicable to only mvsesa enterprise server) ?
What the difference is between continue and next sentence?
What are various search techniques in cobol? Explain.
Write some characteristics of cobol as means of business language.
How can you get the ksds file records into your cobol program?
I have a File that has duplicate records. I need only those records that occur more than thrice.?
please..could u give an example about USAGE IS POINTER ..and explain why and when we use it ?
What is rmode(24)
2 input fles: 2 flat files, with different number of records. both are having unique key for each record and already sorted in ascending order . match these files using unique key and in output only matching key value has to be written. please procide cobol logic
)If there are 10 steps in GDG, if I want to refer the step2 after step5 . what should I do?
INREC AND OUTREC? HOW TO SPLIT 5K RECORDS TO DIFFERENT FILES IN A FILE IN COBOL? RESTART IN COBOL-DB2? ISOLATION LEVELS?
What is the difference between PIC 9.99 and PIC9v99?
How do we get current date from system with century in COBOL?
How do define dynamic array in cobol. how do you define single dimensional array and multidimensional array in your cobol?