function in solidity
pragma solidity >=0.7.0 <0.9.0;
contract simpleStorage {
uint storeData;
//set and get function
//public enables visibility so that we can call this outside contract
function set(uint x) public{
storeData= x;
}
//view means it values is only read not to modify
function get() public view returns(uint){
return storeData;
}
}