Division of two numbers Learn programming Java

Lesson:

First contact with Java


Exercise:

Division of two numbers


Objetive:

Write a java program to print the result of dividing 24 by 5 on the screen.


Code:

public class Main
{
	public static void main(String[] args)
	{
		System.out.println(24 / 5);
	}
}

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