WeltEnSTurm

LolWut2

Sep 30th, 2010
379
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.30 KB | None | 0 0
  1. int trim(int var, int min, int max, int schritt){
  2.     if(min>max)
  3.         return var;
  4.     if(var>max){
  5.         var=var-schritt;
  6.         if(var>max)
  7.             var=trim(var,min,max,schritt);
  8.         return var;
  9.     };
  10.     if(var<min){
  11.         var=var+schritt;
  12.         if(var<min)
  13.             var=trim(var,min,max,schritt);
  14.         return var;
  15.     }
  16.     printf("Yer gay");
  17. }
Add Comment
Please, Sign In to add comment