Back to Browse

Java arithmetic is easy! 🧮

45.2K views
Dec 5, 2024
8:22

#java #javatutorial #javacourse public class Main { public static void main(String[] args) { // Arithmetic Operators int x = 10; int y = 2; int z; z = x + y; // ADDITION z = x - y; // SUBTRACTION z = x * y; // MULTIPLICATION z = x / y; // DIVISION z = x % y; // MODULUS System.out.println(z); } }

Download

1 formats

Video Formats

360pmp47.8 MB

Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.

Java arithmetic is easy! 🧮 | NatokHD