Loading...
pragma solidity ^0.8.3;
contract task1 {
mapping (uint => mapping (string => uint)) m1;
function setValue1 (uint _id,string memory _name,uint _age) public
{
m1[_id][_name] =_age;
}
function getValue(uint _id,string memory _name) view public returns (uint)
{
return m1[_id][_name];
}
}
For many more exciting tutorials keep following my username @BlockTalks_Raj
!!!!!HAPPY LEARNING!!!!!