Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/codemistic/Data-Structures-and-Algorithms
/ all_pair
Function
all_pair
CPP/array-2d/all_pairs.cpp:3–12 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1
#include<bits/stdc++.h>
2
using namespace std;
3
int all_pair(int arr[], int n){
4
for (int i = 0; i < n; ++i)
5
{
6
for (int j=i+1 ; j < n; ++j)
7
{
8
cout<<arr[i]<<
", "
<<arr[j]<<endl;
9
}
10
}
11
return 0;
12
}
13
14
int main(){
15
int n;
Callers
1
main
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected