Circumference and Area of a Circle
Compute the area and circumference of a circle given the radius. The input/output behavior of the program should be
Circle radius(real number)? 5.1
Area of Circle with radius 5.1 is 81.7104
Circumference is 32.0433
A function prototype tells the compiler the name of the function, the types of data returned by the function, the number of parameters(void odd(int Aa)) the function expects to receive, the types(int,float) of the parameters and the order in which these parameters are expected. The compiler uses function prototypes of validate function calls.
Cleardevice() function erases the graphics screen and moves the cursor position to home that is(0,0). Erasing here means filling current background colour. This function takes no arguments.
Floodfill function when executed fills an enclosed area with the colour and pattern to be inserted given by the user. The pattern to be filled is given through setfillstyle() function.