JavaClaDZ Admin
Posts : 18 Join date : 2008-02-23 Age : 33
| Subject: [Vid-TuT] Java basic math Tutorial Sat Feb 23, 2008 11:49 am | |
| Below is the Video Tutorial on "Java basic math Tutorial" or go to: https://www.youtube.com/watch?v=Ra0YArdzGgw Here is the source code: - Code:
-
import java.util.*; /** * simple math application. * * @author (JavaClaDZ) * website: www.javaspace.board-directory.net */
public class simple { public static void main(String[] args) { double a, b, sum; Scanner scan = new Scanner(System.in); System.out.println("enter 2 numbers"); a = scan.nextDouble(); b = scan.nextDouble(); sum = (a + b); System.out.println("the sum is:" + sum); } } | |
|