Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- * Declaration
- DATA: x TYPE i, y TYPE i, result TYPE i, dt_date TYPE d.
- x = 10.
- y = 4.
- dt_date = SY-DATUM.
- result = x + y.
- WRITE: / 'Name: Akia Japhet Mamaoag',
- / 'Date: ', dt_date MM/DD/YY,
- /,
- / 'Sum of Two Even Numbers: ', 50 result.
- result = result / 2.
- WRITE: / 'Divided by 2 will give the result:', 50 result.
- result = result - 1.
- WRITE: / 'Subtracting by 1 will have the result:', 50 result.
- result = result * 100.
- WRITE: / 'This will be the productif multiplied by 100:', 50 result.
- result = ( ( ( ( x + y ) / 2 ) - 1 ) * 100 ).
- WRITE: / 'Combined all of this will have the same result as:', 50 result.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement