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