Created
October 20, 2015 10:45
-
-
Save edinak1/338f1f15a2d889c4f428 to your computer and use it in GitHub Desktop.
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
| package metod; | |
| public class MetodSum { | |
| public static void main(String[] args) { | |
| double num1=6728.00008; | |
| double num2=4590.56; | |
| sum(num1,num2); | |
| } | |
| static void sum(double num1, double num2) | |
| { | |
| double sum=num1+num2; | |
| System.out.println(num1+"+"+num2+"="+sum); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment