Answer:
The second one:
int sum = 0; for (int i = 0; i < values.length; i++) { if ((values[i] % 2) == 0) { sum += values[i]; } }
The code that remove duplicate is as follows:
def remove_duplicate(mylist):
mylist = list(dict.fromkeys(mylist))
return mylist
print(remove_duplicate([1, 1, 2, 3, 3, 5, 6, 7]))
<h3>Code explanation</h3>
The code is written in python.
- we defined a function named "remove_duplicate" and it accept the parameter "mylist".
- The variable "mylist" is used to store the new value after the duplicate vallues has been removed.
- Then, wed returned mylist.
- Finally, we call the function with the print statement . The function takes the required parameter.
learn more on python here: brainly.com/question/21126936
Answer:
You might experience temporary blackouts and at times memory loss for the short term.
Sudden change in mood, and facing irritability signs
Coming up with excuses for drinking like relaxing, stress, feel normal or deal with stress
keeping distance from friends and various family members
Drinking away from all and in privacy
Suffering from hungover while you are not drinking
Changing group or acquaintances and appearance you usually are with previously
Explanation:
Please check the attachment.