Home
Features
_Multi DropDown
__DropDown 1
__DropDown 2
__DropDown 3
_ShortCodes
_SiteMap
_Error Page
Documentation
_Web Documentation
_Video Documentation
Download This Template
Bahar Programmer
Home
Java Basic
Write a Java program to print the result of the following operations
Write a Java program to print the result of the following operations
Bahar Programmer
May 11, 2022
Java Code:
public class Main {
public static void main(String[] args) {
int w = -5 + 8 * 6;
int x = (55 + 9) % 9;
int y = 20 + (-3 * 5 / 8);
int z = 5 + 15 / 3 * 2 - 8 % 3;
System.out.print(w + "\n" + x + "\n" + y + "\n" + z);
}
}
Post a Comment
0 Comments
Social Plugin
Popular Posts
Write a Java program that takes two numbers as input and display the product of two numbers.
May 11, 2022
JSlider - Java Swing - Example
May 18, 2022
Subscribe Us
Facebook
Tags
Contact form
0 Comments