Answer:
b) A separate part of the program that performs a specific task.
Explanation:
A subroutine is a portion of the program that can be invoked to perform a specific task. Typically, it performs that task and returns execution control to the point immediately following its invocation. It may or may not maintain "history" or "state", and it may or may not throw exceptions.
A well-behaved subroutine will only operate on data passed to it, will not maintain any internal history or state, and will have only one exit.
Computers use binary - the digits 0 and 1 - to store data. A binary digit, or bit , is the smallest unit of data in computing.
Answer:
Explanation:
The following code is written in Java and does exactly what the question asks. The variables are long variables instead of integers because integer variables can only be a maximum of 2147483647 and the product of these two variables is much higher than that.
public static void main(String args[]) {
long x = 50000;
long y = x * x;
System.out.println(y);
}