diff --git a/subarray.cpp b/subarray.cpp new file mode 100644 index 0000000..22288c7 --- /dev/null +++ b/subarray.cpp @@ -0,0 +1,18 @@ +#include +using namespace std; + +int main(){ + int arr[]={1,2,3,4,5}; + int n=5; + + for(int start=0; start