Write a java program using Scanner class to find the GST of a bill given by the user.
No spams, please!!!
Answers
Answered by
2
You can use the following Program::
import java.util.Scanner;
public class Brainly {
public static void main(String [] args) {
Scanner sc = new Scanner(System.in);
// please give GST in percent.
int GST = sc.nextInt();
int bill = sc.nextInt();
int m = GST / 100 * bill;
int total = m + bill;
System.out.println ("your bill is: " + total):
}
}
● This will ask you for two inputs where you have to give first the GST percent and then bill.
◆ Hope This Helps You..♪
Similar questions