1#include <math.h>
2int main()
3{
4 float number;
5 square = pow(number,2); //This returns number raised to the power 2
6 printf("The square of %f is %f", number, square);
7 return 0;
8}
1#include <stdio.h>
2int main()
3{
4 float number;
5 printf("Enter a number: ");
6 scanf("%f", &number);
7 square = number * number;
8 printf("square of the given number %f is %f", number, square);
9 return 0;
10}