2021-07-16 15:48:54 +00:00
|
|
|
#include <iostream>
|
|
|
|
using namespace std;
|
|
|
|
|
|
|
|
void NumberInput() {
|
|
|
|
int UsrNum; // this makes a variable
|
|
|
|
cout << "Type your favorite number will ya: ";
|
|
|
|
cin >> UsrNum; // this gets checks for user input and loads it into UsrNum
|
2021-07-22 13:28:22 +00:00
|
|
|
cout << "Ew I hate the number " << UsrNum << endl; // this displays the number in UsrNum and then to go down a line
|
|
|
|
}
|
|
|
|
|
|
|
|
void PrgEnd() {
|
|
|
|
string Name; // this makes a string called name
|
|
|
|
cout << "To exit the program please type your name: ";
|
|
|
|
cin >> Name; // this gets what you typed
|
|
|
|
cout << "Thanks for playing: " << Name;// this displays what you type
|
2021-07-16 15:48:54 +00:00
|
|
|
}
|
2021-06-28 21:29:15 +00:00
|
|
|
|
|
|
|
int main() {
|
2021-07-16 15:48:54 +00:00
|
|
|
NumberInput(); // this runs the NumberInput function
|
2021-07-22 13:28:22 +00:00
|
|
|
PrgEnd();
|
2021-07-16 15:48:54 +00:00
|
|
|
return 0;// this tells all the functions and code to go back to main aka the start
|
2021-06-28 21:29:15 +00:00
|
|
|
}
|
2021-07-16 15:48:54 +00:00
|
|
|
|