Create functions
Created by Kshitij about a year ago
0
No description provided
1 Comment
0
// SPDX-License-Identifier: MIT pragma solidity ^ 0.8;
contract Function{
uint8 a=10;
function returnStateVariable( ) public view returns (uint8) { return a; }
function returnLocalVariable( ) public pure returns (uint8){ uint8 b=20; return b; }
} what is wrong in this code? It is not getting accepted. It is the code provided by the website only in the answers tab.
show more answers
Your comment