Computer Science, asked by Ankush8038, 1 year ago

plz help me in finding the program​

Attachments:

Answers

Answered by manishapandey176
0

Explanation:

the c Lange program to find area of square

code:-

/*

* C Program to calculate area of a square

*/

#include <stdio.h>

#include <conio.h>

int main(){

float side, area;

printf("Enter length of side of square\n");

scanf("%f", &side);

/* Area of Square = Side X Side */

area = side * side;

printf("Area of square : %0.4f\n", area);

getch();

return 0;

}

output:-

Enter length of side of square : 2.5

Area of square : 6.2500

c language program to calculate perimeter

code:-

/*

* C Program to find perimeter of a square

*/

#include <stdio.h>

#include <conio.h>

int main(){

float side, perimeter;

printf("Enter length of side of Square\n");

scanf("%f", &side);

/* Perimeter of Square = 4 X Side */

perimeter = 4*side;

printf("Perimeter of Square : %0.4f\n", perimeter);

getch();

return 0;

}

output:-

Enter length of side of Square : 5.0

Perimeter of Square : 20.0000

answered by master of computer

follow me

mark it as brainlist.

Similar questions