mirror of
https://github.com/Fechin/reference.git
synced 2026-11-22 05:51:48 +03:00
Merge pull request #575 from qjksxy/main
This commit is contained in:
1 file changed
+2
-2
@@ -52,8 +52,8 @@ double height = 1.85; // floating-point numbers
|
||||
|
||||
// You can also declare a variable as a num
|
||||
num x = 1; // x can have both int and double values
|
||||
num += 2.5;
|
||||
print(num); //Print: 3.5
|
||||
x += 2.5;
|
||||
print(x); //Print: 3.5
|
||||
|
||||
String name = "Nicola";
|
||||
|
||||
|
||||
Reference in new issue
Block a user