#include <iostream>
#include <math>
int main()
{
double x = 2;
double y = sqrt(2);
std::cout << "sqrt(" << x << ") = " << y;
}
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
#include <iostream>
#include <math>
int main()
{
double x = 2;
double y = sqrt(2);
std::cout << "sqrt(" << x << ") = " << y;
}