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.
Answer:
The instruction cycle (also known as the fetch–decode–execute cycle, or simply the fetch-execute cycle) is the cycle that the central processing unit (CPU) follows from boot-up until the computer has shut down in order to process instructions.
The answer to this question would be "Licensing"
Answer:
The output to the given code as follows:
Output:
10
100
64
36
16
4
0
4
16
36
64
Explanation:
In the given java code, an integer variable "i" and an array number is defined, which size is 10, in the next step two for loop is declared, that can be described as follows:
- In the first loop, array use loop variable "i" use, which minus the value of 5 and multiplies by 2, and it will calculate the square of that number.
- In the next step, a for loop is declared, that prints these array number variable square.
Answer:
The instructions in a program can only be expressed using a programming language