StopingPower23

Calculator

Feb 21st, 2012
30
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.41 KB | None | 0 0
  1. import java.util.Scanner;
  2.  
  3. class calc{
  4.     public static void main(String args[]){
  5.         Scanner bryce = new Scanner(System.in);
  6.         double fnum, snum, answer;
  7.         System.out.println("Enter first number: ")
  8.         fnum = bryce.nextDouble();
  9.         System.out.println("Enter second number: ")
  10.         snum = bryce.nextDouble();
  11.         answer = fnum + snum;
  12.         System.out.println(answer)
  13.     }
  14. }
Advertisement
Add Comment
Please, Sign In to add comment