Код: Выделить всё
#include
using namespace std;
int main ()
{
int a = 5;
float b = 5.5;
float result = (float)a + (int)b;
cout
Подробнее здесь: [url]https://stackoverflow.com/questions/78428831/float-doesnt-print-with-decimal[/url]Код: Выделить всё
#include
using namespace std;
int main ()
{
int a = 5;
float b = 5.5;
float result = (float)a + (int)b;
cout
Подробнее здесь: [url]https://stackoverflow.com/questions/78428831/float-doesnt-print-with-decimal[/url]