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


Please Help Members By Posting Answers For Below Questions

How you can characterize tables in cobol?

718


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

2117


EXPLAIN MAIN FRAME TESTING PROCESS...HOW TO FIX THE MAINFRAME BUGS?

2060


what is s000 u4087 error? please give the all error codes in cobol,jcl.

17039


What is the difference between perform … with test after and perform … with test before?

883






If you are current on the owner of a set, what is the difference between obtain next and obtain first?

644


how do you reference the printer file formats from cobol programs

665


How do you reference the following file formats from cobol programs?

695


What is the problem of ordered sequential files access?

702


What is the difference between Call and a Link?

700


When is inspect verb is used in cobol?

675


What are the different data types in cobol?

797


State the various causes of s0c1, s0c5 and s0c7.

664


Which is the default, TEST BEFORE or TEST AFTER for a PERFORM statement?

824


i want a program using by if, evaluate , string, unstring, perform, occurs?

4061