Kod: Zaznacz cały
#include <iostream>
#include <iomanip>
using namespace std;
int main()
{
float e;
double f;
long double g;
cout << "Liczba typu float: " << e << " zajmuje " << sizeof(e) << " b " << endl;
printf("Podaj liczbe typu double:
");
scanf("%lf",&f);
cout << "Liczba typu double: " << f << " zajmuje " << sizeof(f) << " b " << endl;
printf("Podaj liczbe typu long double:
");
scanf("%Lf",&g);
cout << "Liczba typu long double: " << g << " zajmuje " << sizeof(g) << " b " << endl;
return 0;
}