Posts by Ezequiel Conde • 1 point
2 posts
-
0
votes1
answer55
viewsA: While counting zero more
In addition to the error mentioned in the comment (X[0] receiving the previous ENTER), there is an error in the atoi function call. This function takes the pointer to aux, which is a simple…
canswered Ezequiel Conde 1 -
0
votes2
answers64
viewsA: How to insert Rand into C?
Assuming that "Random 1, 3" means generating a random number between 1 and 3, it can be programmed in C like this: #include <stdlib.h> ... Ja = rand() % 3 + 1;…