// Solidity program to demonstrate // function declaration pragma solidity ^0.4.18; // Creating a contract contract Test { // Defining function to calculate sum of 2 numbers function add()public view returns(uint) { uint num1 = 120; uint num2 = 165; uint sum = num1 + num2; return sum; } }
0.4.18