i just wanna know the difference between the 2 witch is better or easier...

TY

int cycle(int m) /* return number of elements in the 3n+1 cycle for m */ { int i = 1; while (m != 1){ if (m % 2 == 0){ m = m/2; } else{ m = 3*m+1; } i++; } return i; } int main() { int m,n,max,temp; int i; while (scanf("%d %d\n",&m,&n)==2){ printf("%d %d ",m,n); /* swap if out of order */ if (m > n){ temp = m; m = n; n = temp; } max = cycle(m); for(i=m+1;i<=n;i++) { temp = cycle(i); if (temp > max) max = temp; } printf("%d\n",max); } return 0; }