Back to Browse

Calculating a number's square root using the C programming language in Code::Blocks.

34 views
Jun 16, 2025
5:49

The code of the program is: #include (lesser than) stdio.h (greater than)[symbols are not supporting. ] #include (lesser than )math.h(greater than)[symbols are not supporting. ] int main() { double number, squareRoot; printf("Enter a number: "); scanf("%lf", &number); squareRoot = sqrt(number); printf("Square root of %.2lf = %.2lf\n", number, squareRoot); return 0; }

Download

1 formats

Video Formats

360pmp47.1 MB

Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.

Calculating a number's square root using the C programming language in Code::Blocks. | NatokHD