其他分享
首页 > 其他分享> > abap 运算符

abap 运算符

作者:互联网

*&---------------------------------------------------------------------*
*& Report  Z8
*&
*&---------------------------------------------------------------------*
*&
*&
*&---------------------------------------------------------------------*

* + - * /    mod 取模

REPORT Z8.

DATA i TYPE int2.

i = 10.

i = i + 1.

DATA result TYPE int2.

result = i mod 2.

IF result = 0.
  WRITE '是偶数'.
  ELSE.
  WRITE '是奇数'.  
ENDIF.
  

 

标签:WRITE,&---------------------------------------------------------------------
来源: https://www.cnblogs.com/hua900822/p/16527008.html