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
write a cobol logic. i have file that has 10 records .1 record go to first output file and second record goes to 2 output and etc
what is difference bt COND, REGION & TIME parameters at JOB & EXEC. give an exp.
What are the different rules of SORT operation?
i want to learn mainframe..any websites and material to learn from basic..? my mail id : rajeswaribe2010@gmail.com
What is the difference between binary search and sequential search?
EXPLAIN MAIN FRAME TESTING PROCESS...HOW TO FIX THE MAINFRAME BUGS?
I have a File that has duplicate records. I need only those records that occur more than thrice.?
)If there are 10 steps in GDG, if I want to refer the step2 after step5 . what should I do?
please..could u give an example about USAGE IS POINTER ..and explain why and when we use it ?
What is rmode(24)
How many sections are there in data division in COBOL?
What is the utilization of copybook in cobol?
i have 10 names in an array and my name is one of them also array is not in sorted order i need to display my name using index how will i do this
What is the difference between Global and External Variables?
What kind of error is trapped by on size error option?