+ 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; }

25th Sep 2023, 7:12 AM
Joni
2 Respostas
+ 4
There is a 2nd input also. Second input is for gun price.
25th Sep 2023, 10:56 AM
Jayakrishna 🇮🇳
+ 2
^It worked. Thanks!
25th Sep 2023, 1:03 PM
Joni