Monday, October 12, 2015

C++ Double data type

//How to use "double" data type 

#include <iostream>
using namespace std;

void main ()
{
double Height; //double is the variable and height is just a name for the variable
Height=23.22; // Assign values to height
cout <<"display Height " <<Height; //display assigned values
cout <<"\n";

system ("pause");
}

No comments:

Post a Comment

lakshanenosh@gmail.com