Sum of two numbers Learn programming Java

Lesson:

First contact with Java


Exercise:

Sum of two numbers


Objetive:

Write a java program to print the result of adding 12 and 13 on screen.


Code:

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

Juan A. Ripoll - Systems Tutorials and Programming Courses ©  All rights reserved.  Legal Conditions.