Program to Calculate the Perimeter of a Decagon | C ++ program to Calculate the Perimeter of a Decagon ; Function for finding the perimeter ; Driver code
#include <iostream> NEW_LINE using namespace std ; void CalPeri ( ) { int s = 5 , Perimeter ; Perimeter = 10 * s ; cout << " The ▁ Perimeter ▁ of ▁ Decagon ▁ is ▁ : ▁ " << Perimeter ; } int main ( ) { CalPeri ( ) ; return 0 ; }