Division of two numbers Learn programming with Java exercises

Lesson:

First contact with Java


Exercise:

Division of two numbers 61


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);
	}
}