Created
September 18, 2024 05:21
-
-
Save gyugyu90/f33eba1254770d9633f9a36f631f53f4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void main() { | |
var added = 1 + 2; | |
print(added); // 3 | |
var subtracted = 3 - 4; | |
print(subtracted); // -1 | |
var multiplied = 4 * 2; | |
print(multiplied); // 8 | |
var divided = 5 / 2; | |
print(divided); // 2.5 | |
var remainder = 5 % 2; | |
print(remainder); // 1 | |
var divideInt = 5 ~/ 2; | |
print(divideInt); // 2 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment