برنامج لحساب مساحة المستطيل بلغة 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>usingnamespacestd;intmain(){doubleLength, Width;cout <<"Enter the Length :";cin >> Length;cout <<"Enter the Width : ";cin >> Width;cout <<"The area is: "<< Length*Width << endl;system("pause");return0;
.png)
0 التعليقات: