Answer:
for(String s:words)
if(s.endsWith("ing"))
System.out.println(s);
Explanation:
Create an enhanced for loop that iterates through the words array
Check if an element in words ends with "ing" using endsWith() method (Since it is said that strings are lowercase letters, we do not need to check it)
If you find one that ends with "ing", print the element
Taking the input as a string, slicing it with a space as the delimiter, turning the divided portion into an integer, and then appending to the list.
<h3>
Explanation:</h3>
def selection_sort_descend_trace(numbers):
i=len(numbers)
print("Output: ")
for num in range(0,i-1):# traversing from 0 to N-2, total N-1 iterations
val=numbers[num]
start=num+1
end=i
t=0
for j in range(start,end):
if(val<numbers[j]):
remember=j
val=numbers[j]
t=1
if(t==1):# swaping onlf if greater number is available
temp=numbers[num]
numbers[num]=val
numbers[remember]=temp
for p in range(i):# printing
print(numbers[p],end=' ')
print("\n")
if __name__ == "__main__":
print("Enter the integers separated by space: ")
numbers=[int(x) for x in input().split(' ')]
selection_sort_descend_trace(numbers)
For further details about the explanation, click here:
brainly.com/question/15728245
#SPJ1
<span>The social commerce feature that includes a stream of events to create a history for friends to view is called a <u>timeline</u>.
You can see it on Facebook, or any other social media you use - timeline is where you can see what other people are doing, or where they can see what is happening in your life, if you choose to share that with your friends on a social media network of your choice.</span>
A is the correct answer. You build credit by using credit cards and paying your bills on time.