Skip to content

lesson 3 #2452

Sep 9, 2022 · 3 comments · 10 replies
Discussion options

You must be logged in to vote
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.7;
contract simplestorage{
    uint256 public favoirtnumber;
    function store(uint256 _favoirtnumber) public { 
        favoirtnumber= _favoirtnumber;
        uint256 test=3;
    }
    function retrive ()public view returns (uint256) { 
        return favoirtnumber;
    
    }
}

Replies: 3 comments 10 replies

Comment options

You must be logged in to vote
4 replies
@samaalshowmary
Comment options

@othaime-en
Comment options

@othaime-en
Comment options

@samaalshowmary
Comment options

Comment options

You must be logged in to vote
3 replies
@samaalshowmary
Comment options

@RoboCrypter
Comment options

@samaalshowmary
Comment options

Comment options

You must be logged in to vote
3 replies
@alymurtazamemon
Comment options

@samaalshowmary
Comment options

@samaalshowmary
Comment options

Answer selected by alymurtazamemon
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants