Basic arithmetic
Try division, remainder, and powers with normal Solidity rules.
Solidity 0.8.36REPL mode
Why use this example
Use this pattern to confirm Solidity arithmetic and unit behavior before putting the same expression into a contract. The entry isolates basic arithmetic so its input, result, and state changes stay easy to compare.
Solidity to run
// Start with the interesting part.
uint256 a = 10
uint256 b = 3
a / b
a % b
a ** bWhat to expect
The transcript shows integer division as 3, the remainder as 1, and 10 raised to the third power as 1000.
Continue the investigation
Change a value, add another expression, or open Inspect after the run. Accepted entries remain available to the next entry, and the clean replay keeps the complete result reproducible.
Read about writing Solidity Prototype Solidity behavior