From 5358f3fb19a7e9eff87943a92d6f790f4f0409cf Mon Sep 17 00:00:00 2001 From: manisha Date: Tue, 13 Oct 2020 01:45:24 +0530 Subject: [PATCH] Updated Logic.java --- Week 2/Birthday Problem/Logic.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Week 2/Birthday Problem/Logic.java b/Week 2/Birthday Problem/Logic.java index 6400d78..023318e 100644 --- a/Week 2/Birthday Problem/Logic.java +++ b/Week 2/Birthday Problem/Logic.java @@ -92,7 +92,7 @@ public double calculate(int size, int count) { } } } - return dupcount*100.0/count; + return dupcount*100.0/(double)count; } // TODO - add your code here