SLIIT
unknown
c_cpp
3 years ago
358 B
22
Indexable
#include <stdio.h> //importing standard input/output library
int main(){
float length,area; //Declaring varibles
printf( "Enter length (in cm) : " ); //Output
scanf( "%f", &length ); //Reading the input
area = length * length; //Calculation
printf( "\nArea of the given square is : %.2f sqcm", area); //Final output
return 0;
}Editor is loading...