SyntaxFix
Write A Post
Hire A Developer
Questions
As your output results a double you should cast either completed variable or total variable or both to double while dividing.
So, the correct implmentation will be:
System.out.println((double)completed/total);