forked from mesetup/project-subs
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDay0.cpp
More file actions
33 lines (23 loc) · 906 Bytes
/
Day0.cpp
File metadata and controls
33 lines (23 loc) · 906 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#include <cmath>
#include <cstdio>
#include <vector>
#include <iostream>
#include <algorithm>
using namespace std;
int main()
//Day 0 Challenge you have to save a line of inpur form the stdin to a variable. print Hello World on second line
//-- Input Format
// A single line of text denoting "input string(the variable whose contents must be printed)"
//-- Output format
//-- Print Hello, World on the first line, conents of input string on second line
//Declare a variable named 'input_string' to hold our input.
{
string input_string;
//Read a full line of input from stdin(cin) and save it on our variable,input string.
getline(cin, input_string);
//Print a string literal saying "Hello,World" to stdout using cout.
cout << "Hello, World." << endl;
//Write a line of code here that prints the contents of input_string
cout << input_string;
return 0;
}