Questions et réponses pour le function :

A function (also called a procedure, method, subroutine, or routine) is a portion of code intended to carry out a single, specific task. Use this tag for questions which specifically involve creating or calling functions. For help implementing a function to perform a task, use [algorithm] or a task-specific tag instead.

1
votes
class Solution { public: bool isPowerOfThree (int n) { ...

1
votes
Validation d'entrée: Le programme devrait afficher une erreur et laisser l'utilisateur réessayer s'il y en a si les nombres sont négatifs. Une seule itération est r ...

1
votes
print( "1. Engine block \n" "2. Pistons \n" "3. Crankshaft \n" "4. Camshaft \n" "5. Cylinder head \n" "6. Connecting Rod \n" ) part = int(input("Choose an engine part to ...

1
votes
Voici le tableau que j'utilise $b = array("Two", "Eight", "Nine", "Eight", "Six", "Seven", "Nine", "Two"); $array = array_map(null, $a, $b); foreach($array as $value) { ...