Computer Science, asked by djAlok01, 5 months ago

Page
write a
statement in Java for
√(a+b)3/[a-b]​

Answers

Answered by shresthakamala56
3

Answer:

The syntax of the Java programming language is the set of rules defining how a .... int a, b; //Declaring multiple variables of the same type int a = 2, b = 3; //Declaring and initializing .

and We can declare variables in java as follows: Variables in Java. datatype: Type of data that can be stored in this variable. ·

Explanation:

Math.sqrt(Math.pow((a+b),3))/l(a-b);

According to ur question..

Mark as brainliest.........................

Answered by kajalmhaskar
0

Answer:

This chapter explains the basic syntaxes of the Java programming language. I shall assume that you have written some simple Java programs. Otherwise, read "Introduction To Java Programming for First-time Programmers".

To be proficient in a programming language, you need to master two things:

The syntax of the programming language: Not too difficult to learn a small set of keywords and syntaxes. For examples, JDK 1.8 has 48 keywords; C11 has 44, and C++11 has 73.

The Application Program Interface (API) libraries associated with the language: You don’t want to write everything from scratch yourself. Instead, you can re-use the available code in the library. Learning library could be difficult as it is really huge, evolving and could take on its own life as another programming language.

The first few sections are a bit boring, as I have to explain the basic concepts with some details.

You may also try the "Exercises on Java Basics".

1. Basic Syntaxes

1.1 Steps in Writing a Java Program

The steps in writing a Java program is illustrated as follows:

JavaBasics_Process.png

Step 1: Write the source code Xxx.java using a programming text editor (such as Sublime Text, Atom, Notepad++, Textpad, gEdit) or an IDE (such as Eclipse or NetBeans).

Step 2: Compile the source code Xxx.java into Java portable bytecode Xxx.class using the JDK Compiler by issuing command:

javac Xxx.java

Step 3: Run the compiled bytecode Xxx.class with the input to produce the desired output, using the Java Runtime by issuing command:

java Xxx

1.2 Java Program Template

You can use the following template to write your Java programs. Choose a meaningful "Classname" that reflects the purpose of your program, and write your programming statements inside the body of the main() method. Don't worry about the other terms and keywords now. I will explain them in due course. Provide comments in your program!

1

2

3

4

5

6

7

8

/**

* Comment to state the purpose of the program

*/

public class Classname { // Choose a meaningful Classname. Save as "Classname.java"

public static void main(String[] args) { // Entry point of the program

// Your programming statements here!!!

}

}

1.3 A Sample Program Illustrating Sequential, Decision and Loop Constructs

Below is a simple Java program that demonstrates the three basic programming constructs: sequential, loop, and conditional. Read "Introduction To Java Programming for First-time Programmers" if you need help in understanding this program.

Similar questions