JavaSpace
Would you like to react to this message? Create an account in a few clicks or log in to continue.

JavaSpace

JavaSpace is a forum were people can help others learn java. Also a place for tutorials. We do everything java!
 
HomePortalSearchLatest imagesRegisterLog in

 

 [Vid-TuT] Java basic math Tutorial

Go down 
AuthorMessage
JavaClaDZ
Admin
JavaClaDZ


Posts : 18
Join date : 2008-02-23
Age : 33

[Vid-TuT] Java basic math Tutorial Empty
PostSubject: [Vid-TuT] Java basic math Tutorial   [Vid-TuT] Java basic math Tutorial Icon_minitimeSat 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);
    }
}
 
Back to top Go down
https://javaspace.board-directory.net
 
[Vid-TuT] Java basic math Tutorial
Back to top 
Page 1 of 1
 Similar topics
-
» All Known Java Classes Here
» Great things to pratice in java
» Tutorial Rules

Permissions in this forum:You cannot reply to topics in this forum
JavaSpace :: JavaTutorial Index :: Tutorials-
Jump to: