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
24 changes: 24 additions & 0 deletions Day1-DataTypes/cpp/main.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
#include <iostream>
#include <iomanip>
#include <limits>

using namespace std;

int main() {
int i = 4;
double d = 4.0;
string s = "HackerRank ";
int j;
double dd;

string s1;
cin>>j;
cin>>dd;
cin.ignore(256, '\n');
getline(cin, s1);
cout<<i+j<<endl;
cout <<setprecision(1)<<fixed<< d + dd << endl;
cout << s + s1;
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