0

Skee-ball

Help me please!!! Test 3 failed #include <iostream> using namespace std; int main() { int point; int cen; int bilet; cin>>point>>cen; bilet=point/12; if (bilet>cen){ cout<<"Buy it!"<<endl; } return 0; }

21st Feb 2020, 5:53 PM
Hl1v
Hl1v - avatar
6 ответов
+ 7
You are missing the else part. What should happen when bilet < cen and what if bilet == cen?
21st Feb 2020, 5:57 PM
Denise Roßberg
Denise Roßberg - avatar
+ 3
Hl1v Your welcome :) Gleb Please don't spam. Follow the community rules: https://www.sololearn.com/Content-Creation-Guidelines/
21st Feb 2020, 6:05 PM
Denise Roßberg
Denise Roßberg - avatar
+ 2
Thank you!
21st Feb 2020, 6:02 PM
Hl1v
Hl1v - avatar
+ 2
Also, bilet >= cen
22nd Feb 2020, 1:14 AM
Hatsy Rei
Hatsy Rei - avatar
0
score = int(input("")) cost_gun = int(input("")) res = score / 12 if res >= cost_gun: print("Buy it!") else: print("Try again")
13th May 2020, 12:25 AM
Artur Wildress
Artur Wildress - avatar
0
x=int(input()) y=int(input()) if ((x/12)>=y): print("Buy it!") else: print("Try again") Lang: Python It works copy paste it in the exact way to know. DM me to know how it's simple btw
31st May 2022, 11:26 AM
Hrithika Reddy
Hrithika Reddy - avatar