well i dont get correct answers and i dont know why pls edit my code and tell me about the error?
import java.util.Scanner;
public class percentage_calculator {
public static void main(String[] args){
System.out.println("Percentage Calculator");
Scanner sc = new Scanner(System.in);
System.out.print("Enter the total amount: ");
int tamt = sc.nextInt();
System.out.print("Enter the amount given: ");
int amt = sc.nextInt();
int perc = (amt/tamt)*100;
System.out.print("The percentage is: " +perc+"%");
}
}