C++ Codes
Algorithms
Algorithm Analysis in C++
Beginners
Code Snippets
Graphics
Data Structures
File Manipulation
Games
Mathematics
Miscellaneous
Visual C++ Library
C++ > Code Snippets sample source codes
Area of rectangle
Area of rectangle #include
using namespace std; const double pi = 3.14159; int main() { float length, width, area; cout << "Enter The Length Of The Rectangle: "; cin >> length; cout << "Enter The Width Of Rectangle: "; cin >> width; area = length*width; cout <<"The area of the rectangle is : "<< area << endl; return 0; }
Privacy Policy
|
Link to Us
|
Links