Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions Day0-HelloWorld/C++/main_kunal.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#include <iostream>

using namespace std;

int main() {
string input_string;
getline(cin, input_string);
cout << "Hello, World." << endl;
cout << input_string;
return 0;
}
40 changes: 40 additions & 0 deletions Day6-Revision/Cpp/main.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
#include <cmath>
#include <cstdio>
#include <vector>
#include <iostream>
#include <algorithm>
using namespace std;


int main() {
int T;
string str;
char odd[5000];
char even[5000];
cin>>T;
while (T > 0) {
cin >> str;
for(int i=0;i<str.length();i++)
{ int j=0;
if (i % 2 == 0) {
even[j] = str[i];
j++;
cout << even;
}
}
cout<<" ";
for (int i = 0; i < str.length(); i++) {
int k = 0;
if (i % 2 != 0) {
odd[k] = str[i];
k++;
cout << odd;
}
}
cout<<endl;
T--;

}

return 0;
}
1 change: 1 addition & 0 deletions _config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
theme: jekyll-theme-midnight