Skip to content

Instantly share code, notes, and snippets.

@ebba0194
Created December 9, 2017 16:54
Show Gist options
  • Save ebba0194/1ef4e1673c8c0818c413ac7a7a0ba24b to your computer and use it in GitHub Desktop.
Save ebba0194/1ef4e1673c8c0818c413ac7a7a0ba24b to your computer and use it in GitHub Desktop.
#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