Computer Science, asked by gopal1353, 10 months ago

write a program in Java to print the following pattern using substring function. COMPUTER
COMPUTE
COMPUT
COMPU
COMP
COM
CO
C

Answers

Answered by rashibutt
1

I don't know answer please mark me as brainiest

Answered by yshashank857
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