blob: 53c8b7f07c8502b5ac0a5a99f59efc1bcd01d0b4 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
// BlankConsoleLab.cpp : This file contains the 'main' function. Program execution begins and ends there.
//
#include <iostream>
using namespace std;
using std::cout;
using std::cin;
using std::endl;
int main()
{
float width, height,area;
cout << "Enter width (cm) : ";
cin >> width;
cout << "Enter height (cm) : ";
cin >> height;
cout << "width: ";
cout << width<< endl;
cout << "height: ";
cout << height << endl;
area = (width * height / 2) / 10000;
cout << "area (m) : ";
cout << area << endl;
}
|