blob: a307a81034f337634a2bbd759ca928de2bbf9d3c (
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
34
35
36
37
38
39
40
41
42
43
|
//William Bishop
//[email protected]
// 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 kite;
int horizontal_kitew;
int vertical_kitel;
cout << "Please enter a width of the kite" << endl;
cin >> horizontal_kitew
cout << "Your width is: " << horizontal_kitew << endl;
cout << "Please enter your height of the kite " << endl;
cin >> vertical_kitel;
cout << "Our width and the height is: " << horizontal_kitew << "and " << vertical_kitel << endl;
int areaofkite;
int areaofkite = (horizontal_kitew * vertical_kitel) / 2;
cout << "The area of the kite is " << areaofkite;
float Area_of_kiteM;
float Area_of_kiteM = areaofkite / 10000;
cout << " " << Area_of_kiteM << endl;
float aspectratio;
}
|