|
*& Program name
: Z1
*& Author : BASAVARAJ *& Create date : 15/09/2006 *& Program type : SIMPLE PROGRAM *& SAP release : 4.6C *& DESCRIPTION : FIND WHETHER GIVEN NUMBER IS POWER OF 2 * OR NOT ************************************************************************ REPORT Z1 . parameters: num type i. data: var type i value 2. while num > var . multiply var by 2. endwhile. if var eq num. write:/' given no s poer of 2'. else. write:/ 'no s not power of 2'. |
Get help for your ABAP problems
ABAP Books
More ABAP Tips
SAP ERP Modules, Basis, ABAP and Other IMG Stuff All the site contents are Copyright © www.erpgreat.com
and the content authors. All rights reserved.
|