Answer:
/*
Find Largest and Smallest Number in an Array Example
This Java Example shows how to find largest and smallest number in an
array.
*/
public class FindLargestSmallestNumber {
public static void main(String[] args) {
//array of 10 numbers
int numbers[] = new int[]{32,43,53,54,32,65,63,98,43,23};
//assign first element of an array to largest and smallest
int smallest = numbers[0];
int largetst = numbers[0];
for(int i=1; i< numbers.length; i++)
{
if(numbers[i] > largetst)
largetst = numbers[i];
else if (numbers[i] < smallest)
smallest = numbers[i];
}
System.out.println("Largest Number is : " + largetst);
System.out.println("Smallest Number is : " + smallest);
}
}
/*
Output of this program would be
Largest Number is : 98
Smallest Number is : 23
*/
Explanation:
The closest line to that would be the first line:
#!/bin/bash
echo "Hello World!"
BTW, the "#!" is referred to as a she-bang. When those are the first characters executed, the (requires an absolute path) program that follows is launched, and the rest of this file is given to it as data. To run this like a program, the execute permissions need to be set ( chmod 0755 script.sh ).
1. stay determined and motivated
2. plan ahead
3 stay organized
4. give individual attention to classes
5. don't drop out, even in the toughest times
6. get passing grades
7. graduate high school
8. plan for college and organize for college
9. prepare yourself
9. repeat?
Answer:
48 is the answer
Explanation:
16×3 is the explanation for your question
Answer:
Used for if you accidentally delete something or if you later want to retrieve something.