you have to create a public state variable num and initialized it with 10;
you have to create a local variable rollNumber and initialized it with 10 using a function getLocal() . This getLocal( ) also returns the value the local variable.
you have to create a state variable and initialised it with 10 and then you have to create a function returnStateVariable( ) which returns the value of the created state variable . In the same way you have to create a local variable and initialised it with 20 and then you have to create a function returnLocalVariable( ) which returns the value of the created local variable.
- Create a state variable (need not to be public).
- Create a set() and with one argument. And set the value of the created state variable with the value passed as an argument to the set().
- Then create another function get() which returns the value of the state variable.
- Create a checkInput (uint input).
- Check whether the input is greater than equal to zero and less than equal to 255. If input is within range then return "Within Range" otherwise throw error "Not Within Range".