Rabu, 17 April 2013

Float & Double

//program09.cpp
#include <iostream.h>
#include <conio.h>
#include <iomanip.h>
void main()
{
  float a; a = 56.0123456789123456789;
  double b; b = 56.0123456789123456789;
 cout<<setprecision(18); //mengatur presisi tampilan
 cout<<"a = "<<a<<endl;
 cout<<"b = "<<b<<endl;
getch();
}
separador

0 komentar:

Posting Komentar

Followers