SLIIT

Anonymous
c_cpp
10/15/2022 3:31 PM
480 B
39
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...