Hi, I am learning C++, and I am trying to make something to calculate the area of polygons. I am using Dev C++ and it is great, but I don't understand why it will not compile this!
#include <iostream>
#include <stdlib.h>
int main()
{
unsigned short int Apothem = 5, SideLength, SideNumber, Perimeter, Area;
SideLength = 1;
SideNumber = 6;
Perimeter = SideLength * SideNumber;
Area = Perimeter * Apothem * 0.5;