Joao829 Posted June 15, 2021 at 02:47 PM Report Share #622639 Posted June 15, 2021 at 02:47 PM Dado um número inteiro, determine o produto dos seus dígitos. Exemplo: número = 34262 resultado = 288 (3*4*2*6*2) Alguém me consegue ajudar por favor? Link to comment Share on other sites More sharing options...
thoga31 Posted June 16, 2021 at 03:14 AM Report Share #622645 Posted June 16, 2021 at 03:14 AM Esse é um problema clássico para ser resolvido com divisão inteira (div) e resto da divisão (mod). Exemplo: 42 div 10 = 4 42 mod 10 = 2 Cumprimentos. Knowledge is free! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now