Wednesday, April 20, 2016

Java programming Language Code Examples-Pre & Post Condition(10)

Smiley face

Code:Post Condition(x++)

Smiley face

Output:

Smiley face

Code:Pre Condition(++x)

Smiley face

Output:

Smiley face

Note

different between post & pre condition is
if you give post condition value of x change at next line but
if you give pre condition value of x change at same line

No comments:

Post a Comment

Wel Come !!! computer express