Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * To change this template, choose Tools | Templates
- * and open the template in the editor.
- */
- package test;
- import java.text.NumberFormat;
- import java.util.Scanner;
- /**
- *
- * @author koreden
- */
- public class Test {
- /**
- * @param args the command line arguments
- */
- public static void main(String[] args) {
- double db = 95.3;
- double test = 98;
- int j = 12, i = 15;
- double answer = (test+i+j)/3;
- NumberFormat nf = NumberFormat.getInstance();
- System.out.println("The answer is " + nf.format(answer));
- }
- }
Add Comment
Please, Sign In to add comment