Domanda di colloquio di Tata Consultancy Services

Write a program to print all the pairs in array

Risposta di colloquio

Anonimo

13 dic 2024

Its a simple code just put two nested for loop. Inner loops start from j=i+1 position and print the the elements at i th and j th position in inner loops.