Computer Science, asked by seeramsettiprabath, 7 months ago

Write a C-Program to accept the side of a square and find its perimeter. ​

Answers

Answered by tiwarishashwat125
1

Answer:

#include<stdio.h>

int main()

{

float side,perimeter;

printf("enter side of square: ");

scanf("%f",&side);

 

 

perimeter=4*side;

printf("POS: %f\n",perimeter);

return 0;

}

#include<stdio.h>

float perimeter(float s)

{

return (4*s);

}

 

int main()

{

float s,p;

 

printf("enter side of square: ");

scanf("%f",&s);

 

p=perimeter(s);

printf("POS: %f\n",p);

return 0;

}

Answered by pjs509920
0

Answer:

and perimeter of a square.

A square is quadrilaterals(having four sides) having all sides equal and all interior angles are 90.(right angles). Opposite sides of a square are parallel. A square is a special case of parallelogram where all sides and internal angles are equal.

Similar questions