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

Can a Search can be done on a table with or without Index?

806


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

644


What is report-item in COBOL?

713


There are 5 fields and 1000 records in a file. Unload it into an array. Write the syntax for declaration and how will you unload it.

934


What are various search techniques in cobol? Explain.

650






What are all the divisions of a COBOL program?

667


Write down the divisions of cobol program?

673


Discuss about changing dataset name in proc.

765


What is the difference between external and global variables in COBOL?

815


How to find out the closest prime number of an input number? I believe it has something to do with SEARCH and COBOL Linear Array.

3724


What are the cobol coding sheets?

666


Which division and paragraphs are mandatory for a COBOL program?

712


In COBOL, what is the different between index and subscript?

763


What happens when we move a comp-3 field to an edited (say z (9). Zz-)?

780


How do define dynamic array in cobol. how do you define single dimensional array and multidimensional array in your cobol?

710