I made a program which is doing something but that is not important imoportant is that it is not "couting" for an example 46.00 it is 46, or not 50.00 it is 50 i want to make it work sorry for bad english but I think that u understood :)
Please help, and also how do I make a square of number 8 for an example it will return 64? :)
Hey man, the first important thing to remember about C / C++ is that Data Types are important. You are currently trying to print out an integer (a whole number) so try changing this line of code: int endic;
to this: double endic;
you should now see decimal results. As to why you would want to display 56.00 instead of 56 I am unsure but changing the DT should work.
As for squaring a number, you can do this by multiplying the number by itself or using the pow() function like so: cout << 8*8 << endl;cout << math::pow(8,2) << endl;