My first c++ program!
Hey guys, so this is what it does:
it squares any number you want. ( doubles it)
Dont QQ how bad it is since its my first prog.
Source code:
it squares any number you want. ( doubles it)
Dont QQ how bad it is since its my first prog.
Source code:
Code:
#include <iostream>
int main()
{
using namespace std;
int mynumber, myothernumber;
cout << "What number do you want to make squared?" << endl;
cin >> mynumber;
cout << "Really dude? That number? your brain too small to make it squared yourself? Fine than... press any key to see your answer if you still havent figured it out. ";
mynumber = mynumber * mynumber;
system("pause");
cout << mynumber << endl;
system("pause");
return 0;
}

