Advertisement
green_crypto_knight

Untitled

Sep 5th, 2018
280
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
ABAP 0.65 KB | None | 0 0
  1. * Declaration
  2. DATA: x TYPE i, y TYPE i, result TYPE i, dt_date TYPE d.
  3. x = 10.
  4. y = 4.
  5. dt_date = SY-DATUM.
  6. result = x + y.
  7.  
  8. WRITE: / 'Name: Akia Japhet Mamaoag',
  9.        / 'Date: ', dt_date MM/DD/YY,
  10.        /,
  11.        / 'Sum of Two Even Numbers: ', 50 result.
  12.  
  13. result = result / 2.
  14.  
  15. WRITE: / 'Divided by 2 will give the result:', 50 result.
  16.  
  17. result = result - 1.
  18.  
  19. WRITE: / 'Subtracting by 1 will have the result:', 50 result.
  20.  
  21. result = result * 100.
  22.  
  23. WRITE: / 'This will be the productif multiplied by 100:', 50 result.
  24.  
  25. result = ( ( ( ( x + y ) / 2 ) - 1 ) * 100 ).
  26.  
  27. WRITE: / 'Combined all of this will have the same result as:', 50 result.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement