Hallo Gunnar,
Mal eine kleine Knobelaufgabe zum Wochenende: Was ist die einstellige Quersumme der Zahl [latex]42^{42}[/latex]?
echo "42^42" | bc -l | perl -pi -e 's~\\\n~~g' | perl -pi -e 's~(.)~$1+~g' | perl -pi -e 's~\+$~~g' | bc -l
[rot13]ergibt bei mir dreihundertfuenfzehn, also ist die einstellige Quersumme neun. ;-)[/rot13]
Viele Grüße,
Christian
--
"I have always wished for my computer to be as easy to use as my telephone; my wish has come true because I can no longer figure out how to use my telephone." - Bjarne Stroustrup
"I have always wished for my computer to be as easy to use as my telephone; my wish has come true because I can no longer figure out how to use my telephone." - Bjarne Stroustrup