This topic is about of Solidity – First Application.
We’re using Remix IDE to Compile and Run our Solidity Code base.
Step 1 − Copy the given code in Remix IDE Code Section.
Example
pragma solidity ^0.5.0; contract SolidityTest { constructor() public{ } function getResult() public view returns(uint){ uint a = 1; uint b = 2; uint result = a + b; return result; } }
Step 2 − Under Compile Tab, click Start to Compile button.
Step 3 − Under Run Tab, click Deploy button.
Step 4 − Under Run Tab, Select SolidityTest at 0x… in drop-down.
Step 5 − Click getResult Button to display the result.
Output
0: uint256: 3
In this topic we learned about Solidity – First Application. To learn more, Click Here.
Pingback: Solidity - Variables - Adglob Infosystem Pvt Ltd
Pingback: Solidity - While Loop - Adglob Infosystem Pvt Ltd
Pingback: Solidity - do...while loop - Adglob Infosystem Pvt Ltd
Pingback: Solidity - For Loop - Adglob Infosystem Pvt Ltd
Pingback: Solidity - Loop Control - Adglob Infosystem Pvt Ltd
Pingback: Solidity - if statement - Adglob Infosystem Pvt Ltd
Pingback: Solidity - if...else statement - Adglob Infosystem Pvt Ltd
Pingback: Solidity - if...else if... statement. - Adglob Infosystem Pvt Ltd
Pingback: Solidity - Strings - Adglob Infosystem Pvt Ltd
Pingback: Solidity - Enums - Adglob Infosystem Pvt Ltd
Pingback: Solidity - Structs - Adglob Infosystem Pvt Ltd
Pingback: Solidity - Mapping - Adglob Infosystem Pvt Ltd
Pingback: Solidity - Special Variables - Adglob Infosystem Pvt Ltd
Pingback: Solidity - Functions - Adglob Infosystem Pvt Ltd
Pingback: Solidity - View Functions - Adglob Infosystem Pvt Ltd
Pingback: Solidity - Function Overloading - Adglob Infosystem Pvt Ltd
Pingback: Solidity - Mathematical Functions - Adglob Infosystem Pvt Ltd
Pingback: Solidity - Pure Functions - Adglob Infosystem Pvt Ltd
Pingback: Solidity - Cryptographic Functions - Adglob Infosystem Pvt Ltd
Pingback: Solidity - Contracts - Adglob Infosystem Pvt Ltd
Pingback: Solidity - Inheritance - Adglob Infosystem Pvt Ltd
Pingback: Solidity - Abstract Contracts - Adglob Infosystem Pvt Ltd
Pingback: Solidity - Interfaces - Adglob Infosystem Pvt Ltd
Pingback: Solidity - Libraries - Adglob Infosystem Pvt Ltd
Pingback: Solidity - Assembly - Adglob Infosystem Pvt Ltd
Pingback: Solidity - Basic Syntax - Adglob Infosystem Pvt Ltd
Pingback: Solidity - For Loop - Adglob Infosystem Pvt Ltd