input:- A 10 20 30 40 B 5 7 10 14 C 8 12 14 16....
output:- A = 100,B=36,C=50.
Here spaces are considered between numbers.
When we give input as above, the numbers should be added n
displayed.So please help me out.
Answer Posted / lalitha
Use Delimiter option in STRING function - COBOL to unstring
the numbers to variables and then sum it up.
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
What rules are followed by the search verb.
1.give the details about WHEN OTHER. 2. how many form are available in evaluate.
Describe the cobol database components?
Write the code to count the sum of n natural numbers.
What are declaratives and what are their uses in cobol?
Which division and paragraphs are mandatory for a COBOL program?
What are the different rules for performing sort operation?
How to get the last record in vsam file in cluster? And how can you get the ksds file records into your cobol program?
Define static linking and dynamic linking.
What is the difference between Global and External Variables?
please..could u give an example about USAGE IS POINTER ..and explain why and when we use it ?
What are the different open modes available in cobol?
Why occurs cannot be used in 01 level in COBOL?
How do you reference the fixed block file formats from cobol programs
How do you reference the following file formats from cobol programs?