Hey guys, i was trying to make a fun .exe file which could help my friends(they are really stupid bout math) or just be for fun (i started learning c++ today and wanted to make something cool so dont start QQ about how shtty this is)
What the .exe does is that it multiplies the number the user inputs with the same number, (Makes it squared, lets say mm2,cm2,dm2,m2,km2 and alot more but yeah you dont type the "mm" for example, you just type the number.
So heres the code and i hope you can tell me whats wrong with it:
Code:
#include <iostream>
int main()
{
using namespace std;
int mynumber;
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... heres your squared number: "
mynumber = mynumber * mynumber;
cout << mynumber;
system("pause");
return 0;
}
btw when i get the hang of c++ than i want to start making hacks, im currently learning from thenewboston at youtube but are there any better tuts? Since as far as i have seen he only shows how to make calcs and other stuff.
LOL srry, just saw that i was missng a ; from the output, srry guys lol.