File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ CLASS zcl_crypto_square IMPLEMENTATION.
27
27
IF str_len = 0 .
28
28
RETURN .
29
29
ENDIF .
30
- WHILE ( column * row ) < str_len.
30
+ WHILE column * row < str_len.
31
31
IF column > row.
32
32
row += 1 .
33
33
ELSE .
@@ -41,7 +41,7 @@ CLASS zcl_crypto_square IMPLEMENTATION.
41
41
FOR j = 0 UNTIL j = row
42
42
NEXT txt &&= | {
43
43
"check offset beyond string length?
44
- COND string( WHEN ( ( j * column ) + i ) >= str_len
44
+ COND string( WHEN j * column + i >= str_len
45
45
"add space if , more than one row in square
46
46
THEN COND string( WHEN row > 1
47
47
THEN ` `
Original file line number Diff line number Diff line change @@ -18,14 +18,14 @@ ENDCLASS.
18
18
19
19
CLASS zcl_darts IMPLEMENTATION .
20
20
METHOD score .
21
- IF ( ( x * x ) + ( y * y ) ) <= 1 .
21
+ IF x * x + y * y <= 1 .
22
22
result = 10 .
23
- ELSEIF ( ( x * x ) + ( y * y ) ) <= ( 5 * 5 ).
23
+ ELSEIF x * x + y * y <= ( 5 * 5 ).
24
24
result = 5 .
25
- ELSEIF ( ( x * x ) + ( y * y ) ) <= ( 10 * 10 ).
25
+ ELSEIF x * x + y * y <= ( 10 * 10 ).
26
26
result = 1 .
27
27
ENDIF .
28
28
ENDMETHOD .
29
29
30
30
31
- ENDCLASS .
31
+ ENDCLASS .
You can’t perform that action at this time.
0 commit comments