Division of two numbers Learn programming Java

Lesson:

First contact with Java


Exercise:

Division of two numbers 15


Objetive:

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


Code:

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