Computer Science, asked by ExoticaFleurx, 2 days ago

Question :-
1.Write down the steps to write a program to assign three numbers calculate their sum in Java?
2.Give 3 examples of valid identifiers in Java.
3.Explain operators in Java? Write it's types explain them too with suitable examples
•Don't spam
•No copied answer ​

Answers

Answered by meenumonga9054
4

Answer:

question 1 :-Sum of Three Numbers in Java

import java.util.Scanner;

public class SumOfNumbers5.

{

public static void main(String args[])

{

int x, y, z, sum;

Scanner sc = new Scanner(System.in);

System.out.print("Enter the first number: ");

Explanation:

question 2 :- HelloJava (Class name)

main (main method)

String (Predefined Class name) e. g

question 3 :- Operator Description Example

* Multiplication Multiplies values on either side of the operator A*B=200

/ Division Divides left hand operand with right hand operator A/B=0

% Modulus Divides left hand operand by right hand operand and returns remainder A%B=0

Similar questions