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 was removed from COBOL in the COBOL II implementation?
What are differences between COBOL and java ? why we are giving more preference to COBOL ?
how you will define variables length in cobol.
01 a pic x(6) value is abcdef 01 b pic x(3) move a to b wht will be the value in b ?
TO abend the data sholud open in which mode? 1.new 2.old 3.mod 4.shr
can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there
where do u use low-value and high value in cobol
I encountered an error when I move spaces to a numeric field?What should I do to move spaces on that field?help please.
What are declaratives and what are their uses in cobol?
copy 100 records without using ibm utilities
The hierarchy of the execution of logical operators is (a) NOT AND OR (b) AND OR NOT (c) OR AND NOT (d) OR NOT AND
10 Answers Huawei, IBM, TCS,
What are the ways you can generate a copybook?