Skip to content

Commit 1f06221

Browse files
Added a mathematical operation
1 parent 64afc69 commit 1f06221

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/characters/conversion_to_integers.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,11 @@ IO.println(valueOfA);
1818

1919
```java
2020
~void main() {
21+
char letter = 'A';
22+
int result = letter + 3;
23+
24+
IO.println(result); // outputs 68
25+
2126
char gee = 'g';
2227

2328
// all the letters from a to z have consecutive numeric values.

0 commit comments

Comments
 (0)