diff --git a/Others/ProductArrayPuzzle.cpp b/Others/ProductArrayPuzzle.cpp new file mode 100644 index 0000000..57f9584 --- /dev/null +++ b/Others/ProductArrayPuzzle.cpp @@ -0,0 +1,15 @@ +#include +using namespace std; +int main() { + int n,a; + cin>>n; + while(n--){ + cin>>a; + int arr[a]; + long long int y=1; + for(int i=0;i>arr[i];y=y*arr[i];} + for(int i=0;i