Answer:
for (int h = k; h >= 0; h--)
Explanation:
From the list of given options, option C answers the question.
In the outer loop
Initially, k = 0
In the inner loop,
h = k = 0
The value of h will be printed once because h>=0 means 0>=0 and this implies once
To the outer loop
k = 1
The inner loop will always assume value of k;
So,
h = 1
This will be printed twice because of the condition h>=0 means 1>=0.
Since 1 and 0 are >=0; 1 will be printed twice
To the outer loop
k = 2
The inner loop
h = 2
This will be printed thrice because of the condition h>=0 means 2>=0.
Since 2, 1 and 0 are >=0; 2 will be printed thrice
To the outer loop
k = 3
The inner loop
h = 3
This will be printed four times because of the condition h>=0 means 3>=0.
Since 3, 2, 1 and 0 are >=0; 3 will be printed four times
Answer:
For the first question I think it is chains
The second question.
The woman is suspicious at hotel doors have numbers so how could he have been confused
Explanation:
Answer:
Reorder terms.
y=52x−1
Cancel the common factor of 22.Factor 22 out of −2-2.
y−4=5x2+52⋅(2(−1))y-4=5x2+52⋅(2(-1))
Cancel the common factor.
y−4=5x2+52⋅(2⋅−1)y-4=5x2+52⋅(2⋅-1)
Rewrite the expression.
y−4=5x2+5⋅−1y-4=5x2+5⋅-1
Multiply 55 by −1-1.
y−4=5x2−5
Answer:
import java.util.Scanner;
class Main
{
public static void main(String[] args)
{
System.out.println(" Enter the the two numbers:");
Scanner input = new Scanner(System.in);
int a = input.nextInt();
int b = input.nextInt();
int c = sumsquareFunction(a, b);
System.out.println("Sum of Square of two numbers are:" + c);
}
public static int sumsquareFunction(int n1, int n2) {
int c= n1*n1 + n2*n2;
return c;
}
}
Explanation:
Please check the answer.