Circumference of a Circle

   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


Function Prototype in C++

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 in C++

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 in C++

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.

The use of for Loops alongwith Graphical function to draw a circle chain

Circle() is used to draw a circle centered at(x,y) with radius specified by the variable radius in the current drawing colour.

  •  Start 
  •  Prev 
  •  1  2  3  4  5  6  7 
  •  Next 
  •  End 

Page 1 of 7

About Us

Rekha SetiaRekha Setia is a passionate blogger of Extra Computer Notes. if you have any ideas or any request me @