+ 1
Skee-Ball in C
Hi all, I wrote this code in C that’s working in all cases except case 3. Can someone help? https://sololearn.com/coach/21/?ref=app #include <stdio.h> int main() { int points, tickets, squirt_gun; scanf("%d", &points); tickets = points/12; squirt_gun = 40; if (tickets>=squirt_gun){ printf("%s", "Buy it!" ); } else { printf("%s", "Try again"); } return 0; }
2 Respuestas
+ 4
There is a 2nd input also.
Second input is for gun price.
+ 2
^It worked. Thanks!