twitterfacebookgoogle plusrss feedemail

How to find out area and perimeter of a Square and a Rectangle using C programming


To find out area and perimeter of a Square and a Rectangle using C programming
just copy the bellow code and paste it to your TurboC software. And then run the program.



#include<stdio.h>
#include<conio.h>

void main()
{
  int a,l,b;
  clrscr();
     printf("Enter the side of the Square : ");
     scanf("%d",&a);
     printf("\n The area of the Square : %d",a*a);
     printf("\n The perimeter of the Square : %d",4*a);
     printf("\n\n Enter the length and breadth of the Rectangle : ");
     scanf("%d \n %d",&l,&b);
     printf("\n\n Area of the Rectangle : %d",l*b);
     printf("\n Perimeter of the Rectangle : %d",2*(l+b));
     getch();
}


Kindly Share This Post »»

Author Box by ENGINEER's TIPS

About the Author

I am Arpan Paramanik From India and i am the founder of the blog ENGINEER's TIPS.I Very Much interest in blogging by reading articles online. Mine thirst for learning latest web technologies like HTML, CSS, C, C++ and JavaScript equipped me with an art of web designing. I am now a good designer…’

0 comments:

Post a Comment

 

Wikipedia Search

Search results

Total Pageviews

Recent Comments

If you are facing any problem in this site, or any link is not working then please

Contact us

Name

Email *

Message *

 
To Top To Bottom Auto Scroll Stop Scroll