From b339d1a3a0c87f58f9683ebed14d794af7b0ca9f Mon Sep 17 00:00:00 2001 From: Hunter Date: Wed, 19 Oct 2022 12:01:47 -0700 Subject: simple changes --- BlankConsoleLab/CST116-Lab1-Byrne.cpp | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) (limited to 'BlankConsoleLab') diff --git a/BlankConsoleLab/CST116-Lab1-Byrne.cpp b/BlankConsoleLab/CST116-Lab1-Byrne.cpp index ed5f807..944f5e8 100644 --- a/BlankConsoleLab/CST116-Lab1-Byrne.cpp +++ b/BlankConsoleLab/CST116-Lab1-Byrne.cpp @@ -11,6 +11,20 @@ using std::endl; int main() { - cout << "Hello World!\n"; + // 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; + + } -- cgit v1.2.3