#include<iostream>
using namespace std;
int main()
{
    float x=546.123f;
    double a=9.123456789;
    long double aa=999.12345678l;
    cout<<"double a="<<a<<endl;
    cout<<"long double aa="<<aa<<endl;
    cout<<"float x="<<x<<endl;
    return 0;
}

Embed on website

To embed this program on your website, copy the following code and paste it into your website's HTML: