- 1
Loan calculater in java...
Test case fails..What to do..
4 Réponses
+ 5
start by sharing your code, then explain the task requirement and at wich point you're stuck ^^
no code == no help
+ 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
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);
}
}