{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

labAssignment4a - cin>> value Introduce If statement to...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
Sheet1 Page 1 // This code tells the user if the number entered is in the range. #include <iostream> int main() { double value cout << "Lab Assignment 4\t CSE 1020.301" << endl << "Kasey Scott \t [email protected]" << endl // Promt user to enter a number. cout << "\nPlease enter a decimal number between the range of 100.5 to 199.5: "
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: cin >> value // Introduce If statement to exstablish the range. if (value < 100.5 || value > 199.5) cout << endl << "The number " << value << " is not in the range." << endl else cout << endl << "Thank you " << value << " is in the range." << endl return 0 }...
View Full Document

{[ snackBarMessage ]}

Ask a homework question - tutors are online