diff options
Diffstat (limited to 'BlankConsoleLab/CST116-Lab1-Byrne.cpp')
| -rw-r--r-- | BlankConsoleLab/CST116-Lab1-Byrne.cpp | 16 |
1 files changed, 15 insertions, 1 deletions
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; + + } |