#define _CRT_SECURE_NO_WARNINGS

#include<string>

#include<stdio.h>

#include<stdlib.h>

#include<iostream>

using namespace std;

int main(int argc, char** argv) {

	double pi = 3.14;
	double radius = 0;
	
	printf("Please put the radius in:...\r\n");
	      scanf("%lf", &radius);

	double base = 0;
	
	printf("Please put in the base for the triangle:...\r\n");
	      scanf("%lf", &base);

	double height = 0;
	
	printf("Please put in the height of the triangle:...\r\n");
	      scanf("%lf", &height);

	double circleArea = pi * (radius * radius);
	
	double triangleArea = (base * height) / 2;

	printf("Area of the circle afterwards the triangle has been removed: %0.2lf\r\n", circleArea - triangleArea);
	
	system("PAUSE");
}
