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
Post a Comment