Write a C++ program to find the perimeter and area of the quarter circle.
Answers
Answered by
8
#include <iostream>
using namespace std;
int main( )
{
int radius;
float pi= 3.14;
cout<<"\n Enter Radius (in cm):";
cin>>radius;
float perimeter = (pi*radius) / 2;
float area = (pi*radius*radius) / 4;
cout<<"\n Perimeter of quarter circle is"<<perimeter<<"cm";
cout<<"\n Area of quarter circle is"<<area<<"sq.cm";
}
Similar questions
Social Sciences,
16 days ago
Hindi,
1 month ago
Chemistry,
1 month ago
English,
9 months ago
English,
9 months ago