Program to calculate the Area of a Square.

//Program to calculate the Area of a Square.

 #include<stdio.h>


int main()


{

float side;

printf("enter the side of a square");

scanf("%f", &side);

printf("area of square=%f",side*side); //Area of square = side * Side.

return 0;

}

Comments

Popular posts from this blog

Write a program to check if a number is prime or not.

write a program (keep taking numbers as input from user until user enters an Odd number)

write a program to print all the odd numbers from 1 to 100.