Created
October 31, 2014 12:58
-
-
Save msomu/57e910c959e972b9d08f to your computer and use it in GitHub Desktop.
This is a basic add from user
This file contains hidden or 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.util.Scanner; | |
| public class BacisCalc { | |
| public static void main(String[] args) { | |
| Scanner sc = new Scanner(System.in); | |
| double fnum,snum,answer; | |
| System.out.println("Enter the First number: "); | |
| fnum = sc.nextDouble(); | |
| System.out.println("Enter the Second number: "); | |
| snum = sc.nextDouble(); | |
| answer = fnum + snum; | |
| System.out.println(answer); | |
| } | |
| } |
This file contains hidden or 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
| Enter the First number: | |
| 53.5 | |
| Enter the Second number: | |
| 65.9 | |
| 119.4 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment