-
-
Save folivetti/2b3c861a27585c6b1b3c7f0f0e917c90 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.io.IOException; | |
import java.util.Scanner; | |
public class Main { | |
public static void main(String[] args) throws IOException { | |
String nome; | |
double salario, vendas, total; | |
Scanner sc = new Scanner(System.in); | |
nome = sc.nextLine(); | |
salario = sc.nextDouble(); | |
vendas = sc.nextDouble(); | |
total = salario + 0.15*vendas; | |
System.out.printf("TOTAL = R$ %.2f\n", total); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment