File tree Expand file tree Collapse file tree 2 files changed +47
-0
lines changed Expand file tree Collapse file tree 2 files changed +47
-0
lines changed Original file line number Diff line number Diff line change 1+ *&---------------------------------------------------------------------*
2+ *& Report Z_LC_POWER_OF_2
3+ *&---------------------------------------------------------------------*
4+ *&
5+ *&---------------------------------------------------------------------*
6+ REPORT z_lc_power_of_2.
7+
8+ DATA : num TYPE i VALUE 1 .
9+
10+ PARAMETERS : p_input TYPE i .
11+
12+
13+ WHILE p_input > num .
14+
15+
16+ num = num * 2 .
17+
18+
19+ ENDWHILE .
20+
21+ IF p_input = num.
22+
23+ WRITE : / 'Power of two' .
24+ ELSE .
25+ WRITE : / 'Not a Power of two' .
26+ ENDIF .
Original file line number Diff line number Diff line change 1+ <?xml version =" 1.0" encoding =" utf-8" ?>
2+ <abapGit version =" v1.0.0" serializer =" LCL_OBJECT_PROG" serializer_version =" v1.0.0" >
3+ <asx : abap xmlns : asx =" http://www.sap.com/abapxml" version =" 1.0" >
4+ <asx : values >
5+ <PROGDIR >
6+ <NAME >Z_LC_POWER_OF_2</NAME >
7+ <SUBC >1</SUBC >
8+ <RLOAD >E</RLOAD >
9+ <FIXPT >X</FIXPT >
10+ <UCCHECK >X</UCCHECK >
11+ </PROGDIR >
12+ <TPOOL >
13+ <item >
14+ <ID >R</ID >
15+ <ENTRY >Report Z_LC_POWER_OF_2</ENTRY >
16+ <LENGTH >22</LENGTH >
17+ </item >
18+ </TPOOL >
19+ </asx : values >
20+ </asx : abap >
21+ </abapGit >
You can’t perform that action at this time.
0 commit comments