#include <iostream> #include<math.h> using namespace std; int main(){ int num, result; cout<<"Enter a number: "; cin>>num; result = sqrt(num); cout<<"Square root = "<<result; return 0; }