CPP
cpp
1
2
3
4
5
6
7
8
9
10
11
12
#include <iostream>
using namespace std;
void print(){}
template <typename...Args>
void print(Args&&...arg){
cout << 1;
print(arg + arg...);
}
int main() {
print(6,8);
return 0;
}
Enter to Rename, Shift+Enter to Preview
OUTPUT
Run