Creation of the simple_math directory:
The simple_math directory was created at the path cairo/scripts/simple_math.
File simple_math.cairo:
A new file named simple_math.cairo was added to the src directory of simple_math.
Arithmetic Functions:
Functions for each basic arithmetic operation were implemented:
Addition (+)
Subtraction (-)
Multiplication (*)
Division (/)
Modulus (%)
Function main:
A main function was created with examples to execute all operations and display the results.
Screenshots
Additional Notes
In the division example, I included a clarification that says “in Cairo, the division returns only the integer part, no decimals”. Since these examples are designed for newcomers to the Cairo ecosystem, I thought it was a good idea to provide this additional information to facilitate their understanding.
Pull Request
Issue
Description
Creation of the
simple_math
directory:The
simple_math
directory was created at the pathcairo/scripts/simple_math
.File
simple_math.cairo
: A new file namedsimple_math.cairo
was added to thesrc
directory ofsimple_math
.Arithmetic Functions:
Functions for each basic arithmetic operation were implemented:
+
)-
)*
)/
)%
)Function
main
:A
main
function was created with examples to execute all operations and display the results.Screenshots
Additional Notes
In the division example, I included a clarification that says “in Cairo, the division returns only the integer part, no decimals”. Since these examples are designed for newcomers to the Cairo ecosystem, I thought it was a good idea to provide this additional information to facilitate their understanding.