P="hellohibyegood";
p=p.toUpperCase().replace(p,charAt(0),p.charAt(p.l ength()-1)).substring(4,10);
S.O.P (P);
pls what is the output for this sentence.
Printable View
P="hellohibyegood";
p=p.toUpperCase().replace(p,charAt(0),p.charAt(p.l ength()-1)).substring(4,10);
S.O.P (P);
pls what is the output for this sentence.
Did you check it on any IDE, or any other way you following.
It gives the output OHIBYE