24K gold quest Jon wrong?? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

24K gold quest Jon wrong??

https://code.sololearn.com/cgOHD17CFK1I/?ref=app So when I do this practice it said it snot right but the code works for the 24k gold purity checker upgraded one

5th Feb 2021, 5:40 AM
kole roper
kole roper - avatar
1 Answer
+ 4
kole roper Only 24K should be greater than or equal to 99.9 For 18K should be greater than 75 and less than 83.3 For 20K should be greater than 83.3 and less than 91.7 For 22K no need to check just print in else part
5th Feb 2021, 5:59 AM
A͢J
A͢J - avatar