Skip to content

Instantly share code, notes, and snippets.

@folivetti
Created February 17, 2017 13:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save folivetti/303b1e82d94b98b0740aeb0208feed1a to your computer and use it in GitHub Desktop.
Save folivetti/303b1e82d94b98b0740aeb0208feed1a to your computer and use it in GitHub Desktop.
import java.io.IOException;
import java.util.Scanner;
public class Main {
public static void main(String[] args) throws IOException {
int numero, horas;
double custo, salario;
Scanner sc = new Scanner(System.in);
numero = sc.nextInt();
horas = sc.nextInt();
custo = sc.nextDouble();
salario = horas*custo;
System.out.printf("NUMBER = %d\n", numero);
System.out.printf("SALARY = U$ %.2f\n", salario);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment