// Rustam Zokirov // C++ program to Calculate Area of Rectangle #include #include using namespace std; int main() { cout << "\t\tC++ program to Calculate Area of Rectangle. " << endl; float a, b, Area; cout << "Please enter the length of Rectangle: "; cin >> a; cout << "Please enter the width of Rectangle: "; cin >> b; if (a > 0 && b > 0) { Area = a * b; cout << "The area of Rectangle is " << Area << ";" << endl; } else { cout << "The sides of Rectangle cannot be negative numbers !" << endl; } system("pause"); return 0; }