blob: 944f5e827464902c65ec64531cb71d63c1a372f9 (
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
|
// 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()
{
// Following code is to find the area of the kite
int length = 0;
int width = 0;
float area = (length * width)
// Asking the user to input the length and width in centimetres
cout << "What is the length of the kite in cm?\n"
cin >> length;
cout << "What is the width of the kite in cm? \n"
cin >> width;
return area;
}
|