Question: write a cobol program with below requirement. read a string from terminal with maximum length 1 0 0 . Read sub string from terminal.Use ACCEPT
write a cobol program with below requirement.
read a string from terminal with maximum length Read sub string from terminal.Use ACCEPT verb in both cases.print how many times the substring appered in main string.
For example.
Test Case:
aaaaaa
a
output:
Test case
abcabdab
ab
Output:
Test Case
abcdabcdababcd
abcd
Output:
Test all test cases.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
