Answers for "sqrt en c"

C
1

c math sqrt function

#include <iostream>
#include <cmath>
using namespace std;

int main() {
  cout << "Square root of 25 = ";
   
  // print the square root of 25
  cout << sqrt(25);

  return 0;
}

// Output: Square root of 25 = 5
Posted by: Guest on October-09-2021
1

square in c

#include <stdio.h>
int main()
{
	float number;
	printf("Enter a number: ");
	scanf("%f", &number);
	square = number * number;
	printf("square of the given number %f is %f", number, square);
	return 0;
}
Posted by: Guest on June-03-2021

Code answers related to "C"

Browse Popular Code Answers by Language