import java.util.*;
import java.lang.*;
import java.io.*;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
System.out.print("input total vlaue: ");
double total = scanner.nextDouble();
System.out.println();
System.out.print("input percentage value: ");
double percentage = scanner.nextDouble();
System.out.println();
double result = (total * percentage) / 100;
System.out.println(total + "'s " + percentage + "% is " + result);
scanner.close();
}
}
To embed this project on your website, copy the following code and paste it into your website's HTML: