Commit aecb1d3a authored by Conor McCoid's avatar Conor McCoid
Browse files

Coding: initial commit on practice files

parent 8d9f4f6b
#include <iostream>
int main()
{
std::cout << "Hello, world!";
return 0;
}
#include <iostream> // for std::cout and std::cin
int main()
{
std::cout << "Enter a number: "; // ask for input
int x{0}; // define and initialize a variable x
std::cin >> x; // receive input from user
std::cout << "You entered " << x << '\n';
return 0;
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment