0
Please give a code to find out the square root of a given number.
3 ответов
+ 1
#include <iostream>
#include <cmath>
using namespace std;
int main() {
int n;
cin >> n;
cout << sqrt(n) << endl;
return 0;
}
0
#include <stdio.h>
#include <math.h>
int main()
{
double a;
double b;
printf("enter b");
scanf("%f",&b);
a=sqrt(b);
}
0
sorry
#include <stdio.h>
#include <math.h>
int main()
{
double a;
double b;
printf("enter b");
scanf("%f",&b);
a=sqrt(b);
return 0;
}