blob: 505dbf4eaf06448d50861b228fb1781d2c5bfb84 (
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
32
33
|
// 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()
{
int height;
int width;
int area;
cout << "Enter height of kite in cm: ";
cin >> height;
cout << "Enter width of kite in cm: ";
cin >> width;
cout << "Height = " << height << " cm" << endl;
cout << "Width = " << width << " cm" << endl;
area = (height * width) / 2;
}
|