Skip to main content
Search
Search This Blog
Livecodo
Pages
Home
Courses
Blog
About us
More…
Share
Get link
Facebook
X
Pinterest
Email
Other Apps
March 28, 2024
Write a c program to calculate Area of Square , Perimeter of a Square and Diagonal of a Square.
Online C Compiler IDE
Editor
#include
#include
int main() { float l,A,P,D; printf("enter the value of l"); scanf("%f",&l); A=l*l; P=4*l; D=sqrt(2)*l; printf("The area of square is %f\n perimeter is %f\n diagonal is %f",A,P,D); return 0; }
Popular Posts
March 26, 2024
Dynamic Memory allocation in C
May 18, 2024
Searching and sorting Algorithm in C