Q.5. Write a Java program to find the value of v from the following expression 1/= 1/0+ 1/f
where values of u and f can be accepted from user by using Scanner class. display the result with
appropriate label ?
P.T.O.
Answers
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.