JUST A Short/SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
//Develop a contract write a argumental constructor passing two integers
//And write product function which will return the product of argument passed in the constructor.
contract product{
uint256 mul2;
uint256 num1;
uint256 num2;
constructor (uint256 _a,uint256 _b) {
num1=_a;
num2=_b;
}
function calc4(uint256 _a,uint256 _b) public returns(uint256){
mul2 = _a * _b;
return mul2;
}
pragma solidity ^0.8.0;
//Develop a contract write a argumental constructor passing two integers
//And write product function which will return the product of argument passed in the constructor.
contract product{
uint256 mul2;
uint256 num1;
uint256 num2;
constructor (uint256 _a,uint256 _b) {
num1=_a;
num2=_b;
}
function calc4(uint256 _a,uint256 _b) public returns(uint256){
mul2 = _a * _b;
return mul2;
}