Challenge: Reference and Local Variables
Read the problem statement carefully and solve the challenge by defining the reference and local variables in the right place.
We'll cover the following...
We'll cover the following...
Problem statement
-
Declare a local
private int
type variable, name it mySecretNumber, assign it a value of10
, and declare it outside the functions. -
Inside the
displaySecret
function, ...