C++ Data Types
C++ Data Types
float 4 bytes Stores fractional numbers, containing one or more decimals. Sufficient for
storing 6-7 decimal digits
double 8 bytes Stores fractional numbers, containing one or more decimals. Sufficient for
storing 15 decimal digits
How to solve Square root in C++
#include <iostream>
#include <cmath>
using namespace std;