#include<stdio.h> #include<conio.h> void main() { clrscr(); int side, peri, area; printf("Enter length of a side of square :"); scanf("%d",&side); area=side*side; peri=4*side; printf("Area = %d\tPerimeter=%d",area,peri); getch(); }
No comments: