Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void checkInput(int a) {
- if (a is negative) {
- cout << "Your number can't be negative" << endl;
- // exit program
- }
- else {
- // move on to calculate square root function
- }
- return;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement