Write a program to accept two characters and an alphabet. Display the following format using 2 System.out.println statements.
Sample input - accepted characters are
# and $
Alphabet is d
Sample output - d # $ # d
e # $ # e
t # $ # t
Answers
Answered by
1
Answer:
Input : geeks01for02geeks03!!!
Output :geeksforgeeks
010203
!!!
Here str = "Geeks01for02Geeks03!!!", we scan every character and
append in res1, res2 and res3 string accordingly.
Input : **Docoding123456789everyday##
Output :Docodingeveryday
123456789
**##
Similar questions