#include #include int main() { int x = 0; while ( x <= 20 && x >= -20){ x += rand()%3 - 1 ; printf("%d \n",x); } }