/* * This one uses count to do too many things! */ #include int main () { int i, stop, count ; stop = 0 ; count = 0 ; while (!stop) { printf("How many stars u wanna see? (type in negative number to stop seeing stars.)") ; count = scanf("%d", &i) ; if (i > 0) { while (count <= i) { printf("*") ; count = count + 1 ; } } printf("\n") ; if (i < 0 || count < 0) { stop = 1 ; } } return 0; }