lundi 16 mars 2020

How do I specify function input? [closed]

Build a function named “multiply” that accepts two user “inputs” when run.

As a user, when I run your function, I should be asked to input the first value I want to multiply, and then the second value.

(a) If any of my inputs are non-numbers (i.e: inputs should be either floats or integers), then the function should return “Error: invalid argument!” [here is what I have tried][1] (b) Else, the function should return the product of the two inputs.

Aucun commentaire:

Enregistrer un commentaire