Showing posts with label Simply added Double Values. Show all posts
Showing posts with label Simply added Double Values. Show all posts

Saturday, March 29, 2014

Simply added Double( Data type)values

/* In this program am simply added to double values*/

import java.util.Scanner;
class cool {
public static void main (String args[]) {
Scanner arsi =  new Scanner (System.in);
double fnum , snum ,answer;
System.out.println("Enter 1st number");
fnum = arsi.nextDouble();
System.out.println("Enter 2nd number");
snum = arsi.nextDouble();
answer = fnum + snum;
System.out.println(answer);

}
}
/* Follow me on :
   www.facebook.com/arslan.aliawan
     @arslanaliawan2   (twitter) */