c# - if increasing/decreasing, do something -


i check whether integer increasing or decreasing , something.

int x = 0;

int y = 0;

if x increasing in value, y --;

thanks!

//loop starts //x gets modified if(x>tempx) {     //x increments }     else if (x<tempx) {     //x decrements  } else     //x remains same  int tempx=x; //loop ends 

Comments

Popular posts from this blog

java - WrongTypeOfReturnValue exception thrown when unit testing using mockito -

php - Magento - Deleted Base url key -

android - How to disable Button if EditText is empty ? -