1#include <stdio.h>
2#include <math.h>
3
4int main()
5{
6 double num = 6, squareRoot;
7
8 squareRoot = sqrt(num);
9 printf("Square root of %lf = %lf", num, squareRoot);
10
11 return 0;
12}
1#include <iostream>
2#include <cmath>
3using namespace std;
4
5int main() {
6 cout << "Square root of 25 = ";
7
8 // print the square root of 25
9 cout << sqrt(25);
10
11 return 0;
12}
13
14// Output: Square root of 25 = 5