- 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

# Program to Calculate the Perimeter of a Decagon in C program

## What is Decagon?

Given with side, the task is to calculate the perimeter of decagon. Decagon is a type of polygon with 10-sides that’s why it is also known as 10-gon polygon. It have 10 vertices and edges. A regular decagon has sides of equal length and each internal angle of degree 144.

Given below is the figure of Decagon

To calculate the volume and surface area of Frustum of cone there is a formula

Perimeter = 10 * Side

## Example

Input-: side=10 Output-: perimeter of Decagon is : 100 Input -: side = 20 Output -: perimeter of Decagon is : 200

## Algorithm

Start Step 1 -> declare function for finding the perimeter void perimeter(int n) declare variable as int perimeter set perimeter=10*n print perimeter step 2 -> In main() declare int n=10 perimeter(n) Stop

## Example

#include <stdio.h> // Function for finding the perimeter void perimeter(int n){ int perimeter; perimeter = 10 * n; printf("perimeter of Decagon is : %d", perimeter); } int main(){ int n=10; perimeter(n); return 0; }

## Output

perimeter of Decagon is : 100

- Related Questions & Answers
- Program to calculate area and perimeter of Trapezium
- Program to calculate area and perimeter of equilateral triangle in C++
- Program to calculate area and perimeter of equilateral triangle
- Area of decagon inscribed within the circle in C Program?
- C Program for area of decagon inscribed within the circle?
- Program to calculate the value of nPr in C Program
- Program to find the Area and Perimeter of a Semicircle in C++
- Java Program to find the perimeter of a cylinder
- Java Program to Find the Perimeter of a Rectangle
- Java Program to Find the Perimeter of a Circle
- Find the perimeter of a cylinder in Python Program
- Program to calculate the Area and Perimeter of Incircle of an Equilateral Triangle What is Equilateral Triangle in C?
- Program to calculate area and perimeter of a rhombus whose diagonals are given What is rhombus in C++?
- Program to find the perimeter of a rhombus using diagonals
- C program to calculate the value of nPr?

Advertisements