Other Java Programs - Prefix, Postfix Incrementors/Decrementors - Java

Опубликовано: 04 Март 2016
на канале: Kakra Detome
2,807
14

-----------------------------------------------------------------------------------------------------
Other / Requested Java Programs
--------------------------------------------------------------------------------------------------------------------------------------------------------------------
Write a java program that initializes two integers variables x and y to 0, prints out the increments (using prefix and postfix) of x, resets the value of x to zero. Then using postfix, increment the value of x and store its value in y, then print the postfix values of x and y. then, using prefix, increment the value of x and store its value in y. print the prefix values of x and y.
--------------------------------------------------------------------------------------------------------------------------------------------------------------------
Bitcoin Address - 12uPbtoTBgxKG3ppxC2NSJYmmr5qipsbds
email - [email protected]

Thanks :)
--------------------------------------------------------------------------------------------------------------------------------------------------------------------