Hello, I just had a midterm and there was a question where we had to right a program which can calculate all the numbers which form quadruplets. A quadruplet would be
The program should only run till a<25 also,
at the end we had to output how many quadruplets exist and the number of comparisons we made. Can anyone please help me with an algorithm.