Answers for "com fazer a raiz quadrada em c++"

C++
1

com fazer a raiz quadrada em c++

#include <stdlib.h>
#include <stdio.h>
#include <math.h>

/*
square root of a number
*/

int main(){
float num, raiz;
printf("enter a number: \t");
scanf("%f",&num);
raiz = sqrt(num);
printf("The square root of %f is: %f.\n", num, raiz);
system("pause");
return 0;    
}
Posted by: Guest on April-16-2021

Browse Popular Code Answers by Language