write a program in Java to print the following pattern using substring function. COMPUTER
COMPUTE
COMPUT
COMPU
COMP
COM
CO
C
Answers
Answered by
1
I don't know answer please mark me as brainiest
Answered by
3
Answer:
Given a string as an input. We need to write a program that will print all non-empty substrings of that given string.
Examples :
Input : abcd Output : a b c d ab bc cd abc bcd abcd
Similar questions
Biology,
5 months ago
Social Sciences,
5 months ago
English,
5 months ago
English,
10 months ago
Computer Science,
10 months ago
Chemistry,
1 year ago