import java.util.Scanner;
public class JavaApplication57 {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
System.out.println("Enter two numbers:");
int num1 = scan.nextInt();
int num2 = scan.nextInt();
while (num1 <= num2){
if (num1 %2 == 0){
System.out.print(num1+" ");
}
num1+=1;
}
}
}
I hope this helps!
Answer:
True
Explanation:
The class Math include mathematical functions such as sin(), cos(), tan(), abs(), etc
If the given statement is not written, each of the math function will be written as (take for instance, the sin() function):
<em>Math.sin()</em>
<em></em>
But after the statement has been written (it implies that the Math library has been imported into the program) and as such each of the mathematical function can be used directly.
So instead of <em>Math.sin(), </em>you write <em>sin()</em>
Answer:
general & personal used for computing.
On a graph, move 2 spaces to the right and from there move 18 spaces down. Now, where you've ended, make a dot. The distance fro the origin is -2/18 (as a fraction).