Загрузка...

Basic Math Operations in Java! ➕➖✖️➗

Basic Math Operations in Java! ➕➖✖️➗

Addition:
int sum = 10 + 5;
System.out.println(sum); // 15

Subtraction:
int diff = 10 - 5;
System.out.println(diff); // 5

Multiplication:
int product = 10 * 5;
System.out.println(product); // 50

Division:
int quotient = 10 / 5;
System.out.println(quotient); // 2 ✨

Modulus (Remainder):
int remainder = 10 % 3;
System.out.println(remainder); // 1 💡

All in one:
int a = 10, b = 5;
System.out.println(a + b); // 15
System.out.println(a - b); // 5
System.out.println(a * b); // 50
System.out.println(a / b); // 2
System.out.println(a % b); // 0 🎯

Simple math, just like calculator! 🚀

Master the basics! 💪

#java #programming #math #coding #basics

Видео Basic Math Operations in Java! ➕➖✖️➗ канала Learn With Mandip
Яндекс.Метрика
Все заметки Новая заметка Страницу в заметки
Страницу в закладки Мои закладки
На информационно-развлекательном портале SALDA.WS применяются cookie-файлы. Нажимая кнопку Принять, вы подтверждаете свое согласие на их использование.
О CookiesНапомнить позжеПринять