I have been watching youtube and different guides on internet and thought it would be fun to make a calculator because i have seen many do it, Here is what i have started. It works fine but i want it to be able to show decimals too. All answers are appreciated. (I have a bunch of #Include but ignore those)
#include <iostream>
#include <limits>
#include <cstdio>
#include <tchar.h>
#include <conio.h>
using namespace std;
int main()
{
std::cout << "My first caclulator\nPlease enter your first number: ";
int x, y;
std::cin >> x;
std::cout << "Please enter the other number: ";
std::cin >> y;
int w = x*y;
int c = x + y;
int v = x - y;
int q = x / y;
std::cout << "\nNumbers multiplied: " << w << endl;
std::cout << "\nNumbers added together: " << c << endl;
std::cout << "\nNumbers subtracted: " << v << endl;
std::cout << "\nNumbers divided: " << q << endl;
_tprintf(_T("Press any key to exit "));
while (_kbhit() ) _gettch();
_gettch();
return 0;
}