diff options
Diffstat (limited to 'BlankConsoleLab/CST116-Lab1-Fine.cpp')
| -rw-r--r-- | BlankConsoleLab/CST116-Lab1-Fine.cpp | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/BlankConsoleLab/CST116-Lab1-Fine.cpp b/BlankConsoleLab/CST116-Lab1-Fine.cpp index b46897c..bf098cb 100644 --- a/BlankConsoleLab/CST116-Lab1-Fine.cpp +++ b/BlankConsoleLab/CST116-Lab1-Fine.cpp @@ -13,11 +13,16 @@ int main() { int length; int width; + int correct = 0; + while (correct == 0) { + cout << "How long is your kite in centimeters? "; + cin >> length; + cout << endl << "How wide is your kite in centimeters? "; + cin >> width; + cout << endl << "Your kite is " << length << "cm long and " << width << "cm wide? 1=Yes/ 0=No "; + cin >> correct; + endl; + } - cout << "How long is your kite in centimeters? "; - cin >> length; - cout << endl << "How wide is your kite in centimeters? "; - cin >> width; - } |