Answer:
def main():
# input
num1 = int(input("Type in a number: "))
num2 = int(input("Type in another number: "))
num3 = int(input("Type in another number: "))
list1 = [num1, num2, num3]
# sorts the array
list1.sort()
# list1[-1] prints the first element in the array
print("The largest number is: " + str(list1[-1]))
# -len(list1) takes the length of the list, in this case 3, and makes it a negative number.
# That negative number is then used as an index for the list1 array in order to print the lowest number.
print("The smallest number is: " + str(list1[-len(list1)]))
main()
Explanation:
Hope this helped :) I left some comments so you know what's going on. You can also use max(list1) and min(list1) but I chose indexing because indexing is the better way of doing stuff like this.
Have a good day!
Answer:
7ALWAYS KEEP FOCUS on brainly and I am have been a
Java Specify the command to invoke the calcCirArea() function with a radius of 15 and to save the outcome in the finalArea variable.
A Java application is launched via the java command. It accomplishes this by launching the Java Virtual Machine (JVM), loading the chosen class, and invoking the main() function of that class. The method must receive a String array as a parameter, be declared public and static, and not return any values. The form of the method declaration is as follows:
The Java command can start a class that is declared in a source file when it is in source-file mode. For more information on using the source-file mode, see Launching Single-File Source-Code Programs in Source-File Mode.
Note: You can prepend the JDK JAVA OPTIONS launcher environment variable's content to the Java launcher's actual command line. See utilizing the launcher environment variable JDK JAVA OPTIONS.
To know more about Java click here:
brainly.com/question/12978370
#SPJ4
1 is processing 2. is hardware 3. is software 4. CPU 5. keyboard/mouse 6. output 7.moniter/printer 8. processing 9. Storage 10. motherboard