answersLogoWhite

0

Compute means to calculate. What do you want to "compute", if you already know it is 2? If you want to show the value:

System.out.println("Your number is " + 2);

Compute means to calculate. What do you want to "compute", if you already know it is 2? If you want to show the value:

System.out.println("Your number is " + 2);

Compute means to calculate. What do you want to "compute", if you already know it is 2? If you want to show the value:

System.out.println("Your number is " + 2);

Compute means to calculate. What do you want to "compute", if you already know it is 2? If you want to show the value:

System.out.println("Your number is " + 2);

User Avatar

Wiki User

15y ago

What else can I help you with?

Continue Learning about Engineering

Write a java script program to print first ten odd natural numbers in C?

Q.1 Write a program to print first ten odd natural numbers. Q.2 Write a program to input a number. Print their table. Q.3 Write a function to print a factorial value.


What value is return by int main method?

1. A method declared as "int" returns an int value. 2. The main() method in Java is not declared as "int", but as "void", meaning it returns no value.


How to write java program without using main method?

Java program without mainWe need a main method for executing a program.But YES we can write a program without using main() method.TRICK 1 of 2 :: while writing applets in java we don't use main... we use init() method instead.TRICK 2 of 2 :: using 'static' we can write a program whic will execute successfully and output the desired message on screen. Here it is :: class Mohit{ static { System.out.println("This java program has run without the main method"); System.exit(0); } } -->save the program as Mohit.java to compile::javac Mohit.java (in command prompt) to run ::java Mohit(command prompt) output will be ::This java program has run without the main methodWhoa!!!!! we are done.;)


Write a menu driven program in java to find area of different shapes. 1. Circle 2. Triangle 3. Rectangle?

Remember that the area of a rectangle is width * height: static int getArea(Rectangle r) { return r.width * r.height; }


Write a java program to print the following output using the for loop 1 2 2 3 3 3 4 4 4 4 5 5 5 5 5?

12345 1234 123 12 1

Related Questions

Jntu 2-2 oops through java answers?

write a java program to find factorial using recursive and non recursive


How do you write absoulute value of -2?

It is +2


Write a java script program to print first ten odd natural numbers in C?

Q.1 Write a program to print first ten odd natural numbers. Q.2 Write a program to input a number. Print their table. Q.3 Write a function to print a factorial value.


How do you write a program in java that prints 2 to the power of 999?

Fortunately for us, Java can handle arbitrarily-large numbers via the BigInteger class. This will compute and print out the value of 2999 final BigInteger TWO = BigInteger.valueOf(2L); final int exponent = 999; final BigInteger answer = TWO.pow(exponent); System.out.println(answer);


What is the value of the 2 in 69.025 Write your answer as a fraction?

It is 2/100.


Write a statementin a java program to read 2 integers and dispay the number of interagers between them?

a=153 a=n%10;


Write a java program to find sum of even and odd numbers in given array?

for(int i = 1; i < 100; i+=2) { System.out.println(i); }


What value is return by int main method?

1. A method declared as "int" returns an int value. 2. The main() method in Java is not declared as "int", but as "void", meaning it returns no value.


Write a program to Print pyramid of numbers using java?

hi question is here, 1 1 2 1 2 3 1 2 3 4


How do you write absolute value of x without the absolutee value?

|x|=√(x^2).


How do you write java code to sum -2 4-6 8?

In Java, just write a plus sign between the numbers you want to add, or variables that hold those numbers. For example: result = -2 + 4 + -6 + 8; or: a = -2; b = 4; c = -6; d = 8; result = a + b + c + d; Don't forget to declare the variables.


How do you write one half in numerical value?

1/2