Posts by Adriano Soares • 1 point
2 posts
-
-3
votes6
answers14587
viewsA: Show the largest and smallest number
Let n1 = 1; Let N2 = 5; Let N3 = 7; Let max = Math.max(n1,N2,N3); Let mim = Math.min(n1,N2,N3); console log.(Maior: ${max} e o menor: ${mim});
-
-3
votes6
answers14587
viewsA: Show the largest and smallest number
Function maxEMim(n1, N2, N3){ var max = Math.max(n1,n2,n3); var mim = Math.min(n1,n2,n3); console.log(`Maior: ${max} e o menor: ${mim}`); } maxEMim(10,5,0);…