Has anyone solved "No Zeroes" CCC from the Java Course⁉️🤔 | Sololearn: Learn to code for FREE!

+8

Has anyone solved "No Zeroes" CCC from the Java Course⁉️🤔

I can't pass the Test #2. There is probably a bug bcs the Data Input are the same as in Test #1 but SL expects different answer then in Test #1⁉️🤔 Error: division by zero 🆚 2 Of course, I've reported that bug‼️😕

11/23/2020 12:16:36 PM

Janusz Bujak 🇵🇱

8 Answers

New Answer

+6

Victory: Already Fixed‼️😃👍 Input data in Test #2 have been changed from 5 2 on 5 0‼️

+6

Chris My code works correctly 😃 Check spaces etc⁉️👍

+5

Chris try { ... System.out.println(num1/num2); } catch(ArithmeticException aex) { System.out.println("Еrror: division by zero"); } ...

+3

Chris Maybe in your line you have some invisible sign⁉️ https://code.sololearn.com/c3yoeduGyExa/?ref=app

+1

That was fixed but now it doesn't work for me. My output and expected output are identical but it says it's wrong.

+1

I've checked and rewritten it 3 times. The exception for Test 3 works fine, but just the divide by zero. IDK why

+1

I swear yours and mine are identical... But when. I copied your line over, it worked. I wonder if there was a bug on my end somehow? That is bizarre. Anyways, cheers!!

0