- Trending Categories
- Data Structure
- Networking
- RDBMS
- Operating System
- Java
- iOS
- HTML
- CSS
- Android
- Python
- C Programming
- C++
- C#
- MongoDB
- MySQL
- Javascript
- PHP

- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who

An **Angle** is formed when two rays meet at a point. The point on the plane at which these rays meet is vertex.

**Arc** of a circle is a portion of the circumference that is described by an angle.

In this problem, we are given an angle of the circle. And we need to find the length of arc using the given diameter of the circle. For example,

Input : Angle = 45° Diameter = 28 Output : Arc = 11

Length of arc = (circumference) X (angle/360°)

= (π * d)*(angle/360°)

To make a program that calculates the length of Arc from the given angle and diameter we will apply this formula.

#include <iostream> using namespace std; int main() { double diameter = 28.0; double angle = 45.0; double pi = 22.0 / 7.0; double arc; if (angle >= 360) { cout<< "Angle cannot", " be formed"; } else { arc = (pi * diameter) * (angle / 360.0); cout<<"The length of arc = "<<arc; } return 0; }

The length of arc = 11

- Related Questions & Answers
- Arc length from given Angle?
- What are start angle and end angle of arc in HTML5 canvas?
- Get the arc cosine of an angle in Java
- Get the arc sine of an angle in Java
- Arc function in C
- Angle between a chord and a tangent when angle in the alternate segment is given in C++?
- Get the arc tangent of a given value in Java
- Print all sequences of given length in C++
- Find length of the longest consecutive path from a given starting characters in C++
- Count of sub-strings of length n possible from the given string in C++
- Area of hexagon with given diagonal length in C Program?
- Angle between two Planes in 3D in C++?
- Count subsequence of length three in a given string in C++
- Find a time for which angle between hour and minute hands is given theta in C++
- Program to find length of longest valid parenthesis from given string in Python

Advertisements