/******************************************************************************
Welcome to GDB Online.
GDB online is an online compiler and debugger tool for C, C++, Python, Java, PHP, Ruby, Perl,
C#, OCaml, VB, Swift, Pascal, Fortran, Haskell, Objective-C, Assembly, HTML, CSS, JS, SQLite, Prolog.
Code, Compile, Run and Debug online from anywhere in world.
*******************************************************************************/
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
double prixHT, prixTTC;
final double TVA = 1.2;
int nombreArticle;
Scanner scanner = new Scanner(System.in);
System.out.println("Prix TTC");
System.out.println("Quel est le prix HT ?");
prixHT = scanner.nextDouble();
System.out.println("Quel est le nombre d'articles ?");
nombreArticle = scanner.nextInt();
prixTTC = (nombreArticle * prixHT) * TVA;
System.out.printf("Le prix total TTC est de %.2fâŹ%n", prixTTC);
scanner.close();
}
}