How to use state Variable for stored values permanently in a contract storage in solidity ?

  How to use state Variable for stored values permanently in a contract storage in solidity ?


pragma solidity ^0.5.0;

contract SolidityTest {

   uint storedData;      // State variable

   constructor() public 

{

      storedData = 10;   // Using State variable

   }

}

Comments

Last 7 Days

How to write html code for email signature ?

How to use referrerpolicy Attribute value ( unsafe-url ) with < iframe > tag in HTML ? with example

How to use comments in Solidity programming language ?

What is the syntax of src Attribute with < img > tag in HTML ?

What is HTML (Hyper text markup language) table ?