summaryrefslogtreecommitdiff
path: root/BlankConsoleLab/BlankConsoleLab.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'BlankConsoleLab/BlankConsoleLab.cpp')
-rw-r--r--BlankConsoleLab/BlankConsoleLab.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/BlankConsoleLab/BlankConsoleLab.cpp b/BlankConsoleLab/BlankConsoleLab.cpp
index ce23632..ed7af6e 100644
--- a/BlankConsoleLab/BlankConsoleLab.cpp
+++ b/BlankConsoleLab/BlankConsoleLab.cpp
@@ -24,7 +24,7 @@ using std::cout;
using std::cin;
using std::endl;
-float kiteCalc(int wid, int len);
+float kiteCalc(float wid, float len);
int main()
{
@@ -37,7 +37,7 @@ int main()
cout << endl << "Enter value for kite length in cm: ";
cin >> kiteLen;
- cout << "You have entered " << kiteWidth << "cm for kite width, and " << kiteLen << "cm for kite length." << endl;
+ cout << "\nYou have entered " << kiteWidth << "cm for kite width, and " << kiteLen << "cm for kite length." << endl;
kiteArea = kiteCalc(kiteWidth, kiteLen);
cout << "The area of the kite, in square meters, is: " << kiteArea << endl;
@@ -45,7 +45,7 @@ int main()
}
-int kiteCalc(float wid, float len)
+float kiteCalc(float wid, float len)
{
//calculate kite area in cm^2
float kiteAreaCalc = (wid * len)/2;