diff --git a/day20/C++/PartitionDay20.cpp b/day20/C++/PartitionDay20.cpp index 5a47f209..11a4ba58 100644 --- a/day20/C++/PartitionDay20.cpp +++ b/day20/C++/PartitionDay20.cpp @@ -1,5 +1,5 @@ -/** - * @author divyakhetan +/* + * @author divyakhetan * @date 16/1/2019 */ @@ -11,6 +11,7 @@ using namespace std; int main(){ int n; + cout << "Enter the size of the original array: "<> n; int a[n]; for(int i = 0; i < n; i++){ @@ -42,9 +43,11 @@ int main(){ ans.push_back(part); //for the remaining array //cout << ans.size(); + cout<<"Your answer is :- "; for(int i = 0; i < ans.size(); i++){ for(int j = 0; j < ans[i].size(); j++){ - cout << ans[i][j] << " "; + cout<< ans[i][j] << " "; + } cout << endl; }