Has anyone solved "No Zeroes" CCC from the Java Courseโ‰๏ธ๐Ÿค” | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 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 Answers
+ 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