// SPDX-License-Identifier: MIT
// This line specifies the license under which the code is released.
// Specifies the version of Solidity that the contract is compatible with
pragma solidity >=0.7.0 <0.9.0;
// The contract definition begins here
contract First {
// State variable to store integer data publicly accessible
int public mydata;
// Function to double the input integer and update the state variable 'mydata'
function GetDouble(int _data) public returns (int _output) {
// Doubling the input integer and storing it in the state variable 'mydata'
mydata = _data * 2;
// Returning the doubled value
return mydata;
}
}
// The contract definition ends here