hi can anyone help me with this problem in number theory with regards to prime number? i don't know how to proive this..can someone help?

Prove that an integer is divisible by 3 if and only if the sum of its digits is divbisble by 3. Prove that an integer is divisible by 9 if and only if the sum of its digits is divisible by 9...thanls