Exercises Java

Learn to program performing exercises with java.

Pages

  • Home
  • Index of contents
  • Exercises in C#

Wednesday, October 30, 2013

1.02 - Sum two numbers

/*
/*
 * Autor: Juan Antonio Ripoll
 * Date: 30/10/13
 * 
 * Write a JAVA program to print the result of 
 * adding 12 and 13 on screen.  
 * */

public class Main {

 public static void main(String[] args) {
  System.out.println(12+13);
 }

}
Posted by Juan A. Ripoll at 5:03 PM
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest
Labels: sum two numbers in java

No comments:

Post a Comment

Newer Post Older Post Home
Subscribe to: Post Comments (Atom)

Blog Archive

  • ▼  2013 (30)
    • ►  December (9)
    • ▼  October (21)
      • 2.07 - Repeat until 0 do while
      • 2.06 - Repeat until 0
      • 2.05 - Greatest of three numbers
      • 2.04 - Divide if not zero using else
      • 2.03 - Divide if not zero
      • 2.02 - Multiply if not zero
      • 2.01 - Positive and negative
      • 1.14 - Conversion
      • 1.13 - Rectangle
      • 1.12 - Formats
      • 1.11 - Age
      • 1.10 - Equivalent operations
      • 1.09 - Average
      • 1.08 - Multiplication table
      • 1.07 - Several operations
      • 1.06 - Use of comments
      • 1.05 - Multiple operations and precedence
      • 1.04 - Multiple operations and precedence
      • 1.03 - Division of two numbers
      • 1.02 - Sum two numbers
      • 1.01 - First program in JAVA
Simple theme. Powered by Blogger.