برنامج لحساب مساحة المستطيل بلغة C++
Write a C ++ program to calculate the area of the rectangle which the user enters the length and width and then print the result
أكتب برنامج بلغة C++ يقوم بحساب مساحة المستطيل الذي يقوم المستخدم بإدخال أطواله ثم أطبع النتيجة
#include <iostream>
using
namespace
std;
int
main()
{
double
Length, Width;
cout <<
"Enter the Length :"
;
cin >> Length;
cout <<
"Enter the Width : "
;
cin >> Width;
cout <<
"The area is: "
<< Length*Width << endl;
system
(
"pause"
);
return
0;
0 التعليقات: