SLIIT

mail@pastecode.io avatar
unknown
c_cpp
2 years ago
358 B
17
Indexable
Never
#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;

}