+ 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‼️😕

23rd Nov 2020, 12:16 PM
Janusz Bujak 🇵🇱 🇺🇦
Janusz Bujak 🇵🇱 🇺🇦 - avatar
8 Respostas
+ 7
Victory: Already Fixed‼️😃👍 Input data in Test #2 have been changed from 5 2 to 5 0‼️
23rd Nov 2020, 12:22 PM
Janusz Bujak 🇵🇱 🇺🇦
Janusz Bujak 🇵🇱 🇺🇦 - avatar
+ 7
Chris My code works correctly 😃 Check spaces etc⁉️👍
14th Apr 2021, 7:41 AM
Janusz Bujak 🇵🇱 🇺🇦
Janusz Bujak 🇵🇱 🇺🇦 - avatar
+ 7
Chris try { ... System.out.println(num1/num2); } catch(ArithmeticException aex) { System.out.println("Еrror: division by zero"); } ...
14th Apr 2021, 10:29 AM
Janusz Bujak 🇵🇱 🇺🇦
Janusz Bujak 🇵🇱 🇺🇦 - avatar
+ 5
Chris Maybe in your line you have some invisible sign⁉️ https://code.sololearn.com/c3yoeduGyExa/?ref=app
15th Apr 2021, 6:53 AM
Janusz Bujak 🇵🇱 🇺🇦
Janusz Bujak 🇵🇱 🇺🇦 - avatar
+ 2
That was fixed but now it doesn't work for me. My output and expected output are identical but it says it's wrong.
14th Apr 2021, 5:15 AM
Chris
Chris - avatar
+ 2
I've checked and rewritten it 3 times. The exception for Test 3 works fine, but just the divide by zero. IDK why
14th Apr 2021, 7:55 AM
Chris
Chris - avatar
+ 2
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!!
14th Apr 2021, 11:38 PM
Chris
Chris - avatar
+ 1
lap
24th Nov 2020, 6:29 AM
سيف الدين موسى عبدالله
سيف الدين موسى عبدالله - avatar