- 1

Loan calculater in java...

Test case fails..What to do..

24th Mar 2021, 5:23 AM
DINESH M
DINESH M - avatar
4 odpowiedzi
+ 5
start by sharing your code, then explain the task requirement and at wich point you're stuck ^^ no code == no help
24th Mar 2021, 5:31 AM
visph
visph - avatar
+ 3
DINESH M Follow this format : Question with description Proper tags if you are facing problem in code attach it this will help you to get right answer
24th Mar 2021, 6:38 AM
R🍁🇮🇳
R🍁🇮🇳 - avatar
0
import java.util.Scanner; public class Program { public static void main(String[] args) { int month = 1; Scanner scanner = new Scanner(System.in); int amount = scanner.nextInt(); while(month <= 6){ amount = (int)amount - (amount / 10); month++; } System.out.println(amount); } }
24th Mar 2021, 6:40 AM
DINESH M
DINESH M - avatar
24th Mar 2021, 11:20 AM
Amateur