From a5858c201abbb05f268acdf887c4ffefe7cd8244 Mon Sep 17 00:00:00 2001 From: Smrity chaudhary Date: Tue, 24 Oct 2017 12:29:02 +0530 Subject: [PATCH] Update pattern3.cpp --- pattern3.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pattern3.cpp b/pattern3.cpp index 87c9102..32352be 100644 --- a/pattern3.cpp +++ b/pattern3.cpp @@ -15,7 +15,8 @@ int main() { cout << "Enter number of rows you want to print: "; cin >> nRows; if (nRows < 0) { - cout << "Oops..Enter a positive number..!\n"; + cerr << "Oops..Enter a positive number..!\n"; + //cerr is used to output error messages only. It works as same as cout. goto label; }