URI Online Judge | 1008 Salary solution


Problem Link
URI Online Judge 1008 Salary solution
import java.util.Scanner;
public class Main {
    public static void main(String[] args){
       int a,b;
       float c;
       Scanner sc =new Scanner(System.in);
       a = sc.nextInt();
       b = sc.nextInt();
       c = sc.nextFloat();
       System.out.printf("NUMBER = %d\n", a);
       System.out.printf("SALARY = U$ %.2f\n", b * c);
    }
}

No comments

Theme images by enjoynz. Powered by Blogger.