16 lines
479 B
C++
16 lines
479 B
C++
#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
|
|
cout << "Ew I hate the number " << UsrNum; // this displays the number in UsrNum
|
|
}
|
|
|
|
int main() {
|
|
NumberInput(); // this runs the NumberInput function
|
|
return 0;// this tells all the functions and code to go back to main aka the start
|
|
}
|
|
|