24K gold quest Jon wrong?? | Sololearn: Learn to code for FREE!

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

2/5/2021 5:40:48 AM

kole roper

1 Answer

New 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