mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
9 lines
184 B
Solidity
9 lines
184 B
Solidity
// SPDX-License-Identifier: GPL-3.0
|
|
pragma solidity >=0.0;
|
|
contract C {
|
|
function f(uint a, uint b) public pure returns (uint, uint) {
|
|
require(b != 0);
|
|
return (a / b, a % b);
|
|
}
|
|
}
|