0

What wrong with my coding?

when i run..nothing appear..

The output should be:

Perimeter of Rectangle 1: 22

Perimeter of Rectangle 2: 6

Perimeter of Rectangle 3: 18

Perimeter of Rectangle 4: 4

```
#include<iostream>
using namespace std;
const int TOTAL= 4;
void CalculatePerimeter(int perimeter[], int width[], int height[]);
//const int i,j;
int main(){
int perimeter[TOTAL];
int width[TOTAL] = {6, 2, 6, 1};
int height[TOTAL] = {5, 1, 3, 1};
//int adding[TOTAL];
void CalculatePerimeter(int perimeter[], int width[], int height[]);
return 0;
}
void CalculatePerimeter(int perimeter[], int width[], int height[]){
for(int i=0;i<4;i++){
perimeter[i]=width[i]+height[i];
}
for(int j=0;j<4;j++){
perimeter[j]=perimeter[j]*2;
}
cout<<"Perimeter of Rectangle 1 : "<<perimeter[0]<<endl;
cout<<"Perimeter of Rectangle 2 : "<<perimeter[1]<<endl;
cout<<"Perimeter of Rectangle 3 : "<<perimeter[2]<<endl;
cout<<"Perimeter of Rectangle 4 : "<<perimeter[3]<<endl;
}
```