Posts by João Victor Teixeira • 3 points
1 post
-
-2
votes1
answer29
viewsQ: How can I make the user type a positive integer and display the sum of their example digits : 505 = 5+0+5 =10
Let soma Let num1 num1 = prompt("Enter a positive number") if(num1 < 0){ console.log("Error you tried to make a negative number account") } Else if (num1 > 0){ }