C program to find out perimeter of a square

 C PROGRAM TO FIND OUT PERIMETER 

                           OF A SQUARE

                                                    Best C programming app is Dev c++

Program to find out perimeter of a square is written below;

_____________________________

#include<stdio.h>
int main()
{
int side,peri;
printf("Enter the value of the side of Square:");
scanf("%d",&side);
peri=4*side;
printf("The Perimeter of the Square=%d",peri);
return 0;
}

_____________________________

Output:-  Enter the value of the side of Square:12

                 The Perimeter of the Square=48

The program and the output will be displayed like this as given below:





Thank you all -----

Follow my blog for more programming knowledge...

------------------x----------------------x-------------------------x------------------


Comments

Popular Posts