Created
December 9, 2017 16:54
-
-
Save ebba0194/1ef4e1673c8c0818c413ac7a7a0ba24b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
using namespace std; | |
void printRows(int); | |
int main(){ | |
int nrows; | |
cout<<"Enter number of rows (>0): "; | |
cin>>nrows; | |
do{ | |
cout<<"Invalid entry - try again! "; | |
cin>>nrows; | |
}while (nrows<0); | |
printRows(nrows); | |
return (0); | |
} | |
void printRows (int nrows){ | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment