Discover answers to your most pressing questions at Westonci.ca, the ultimate Q&A platform that connects you with expert solutions. Experience the ease of finding accurate answers to your questions from a knowledgeable community of professionals. Connect with a community of professionals ready to provide precise solutions to your questions quickly and accurately.

Scrieți un program care citește un număr natural n și determină suma cifrelor divizibile cu 3 ale lui n.

Date de intrare
Programul citește de la tastatură numărul n.

Date de ieșire
Programul va afișa pe ecran, c, suma cifrelor divizibile cu 3 ale lui n,
Exemplu
Intrare

7360914
Ieșire

18