Computer Science, asked by jaiswaltanishka984, 2 days ago

small basic to input the radius of a circle from the user and display its area and perimeter.​

Answers

Answered by Gini47Alltime
0

Explanation:

This is in c++ program to find area and perimeter of rectangle

#include<iostream.h>

#include<conio.h>

void main()

{

clrscr();

int len, bre, peri, area;

cout<<"Enter length and breadth of the rectangle :";

cin>>len>>bre;

area=len*bre;

peri=(2*len)+(2*bre);

cout<<"Area = "<<area<<"\tPerimeter="<<peri;

getch();

}

To find square area and perimeter

#include<iostream.h>

#include<conio.h>

void main()

{

clrscr();

int side, peri, area;

cout<<"Enter length of a side of square :";

cin>>side;

area=side*side;

peri=4*side;

cout<<"Area = "<<area<<"\tPerimeter="<<peri;

getch();

}

Similar questions