Horje
C++ area & circumference of a circle Code Example
C++ area & circumference of a circle
	int rad;
    float area, circum;

	cout << "Input the radius(1/2 of diameter) of a circle: ";
    cin >> rad;

	area = 3.14 * rad * rad; // 3.14 * (rad * rad);
    circum = 2 * 3.14 * rad;




Cpp

Related
get ascii value of qchar Code Example get ascii value of qchar Code Example
how to type hello world in c++ Code Example how to type hello world in c++ Code Example
draw rect outline sdl2 Code Example draw rect outline sdl2 Code Example
rapidjson write stringbuffer to file Code Example rapidjson write stringbuffer to file Code Example
how to run code in devcpp Code Example how to run code in devcpp Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
11