upslol

5 Reputation

One Badge

3 years, 342 days

MaplePrimes Activity


These are replies submitted by upslol

@Preben Alsholm hello thanks for you answer. i also want to learn something 

ara:=proc(X::string)
local i;
local uppers,lowers,digits,others;
uppers,lowers,digits,others:=""$4:
for i in X do
if i>="A" and i<="Z" then
uppers:=Select(IsUpper,X)
elif i>="a" and i<="z" then
lowers:=Select(IsLower,X)
elif i>="0" and i<="9" then
digits:=Select(IsDigit,X)
else
others:=cat(others,i)
fi;
od;
uppers,lowers,digits,others;
end proc;

ara("2,9,f,k,+,-,C,D");
                         "CD", "fk", "29", ",,,,+,-,,"



I can solve the problem.I also want to add comma between each elements like "C,D" and the last part of the solution (",,,,+,-,,") ıs there anyway to delete commas? I mean ıs there anyway to show others like this "+,-".



Page 1 of 1