Integers are in ascending order. (2, 7, 20, 33...) Works for less statements (tried with max int 'zz'), but if there's more, like in my case (up to 'zzzzzzzzz') it starts to ignore lines at the beginning (more integers, more lines being ignored).
if( a < x) {printf("%ld - %ld = %ld\n", x, a, x - a); }
if( b < x) {printf("%ld - %ld = %ld\n", x, b, x - b); }
if( c < x) {printf("%ld - %ld = %ld\n", x, c, x - c); }
printf("\nxxxxxxxxx\n\n");
if( a > x) {printf("%ld - %ld = %ld\n", x, a, x - a); }
if( b > x) {printf("%ld - %ld = %ld\n", x, b, x - b); }
if( c > x) {printf("%ld - %ld = %ld\n", x, c, x - c); }
I'm very new to this, thanks.
Aucun commentaire:
Enregistrer un commentaire