Computer Science, asked by farhanmsaigil7, 10 months ago

1.Write a function No TwoThree ()which should pass List as argument and function should display the value of all elements and their corresponding indexes which are not multiples of 2 or 3 will report silly answers

Answers

Answered by guptaanubhav2005
0

Answer:

Input: arr[] = {0, -1, 2, -3, 1}

       sum = -2

Output: -3, 1

If we calculate the sum of the output,

1 + (-3) = -2

Input: arr[] = {1, -2, 1, 0, 5}

      sum = 0

Output: -1

No valid pair exists.

Similar questions