From 228e802740dee36ab0bf3ef3adb47554ed1fc6a5 Mon Sep 17 00:00:00 2001 From: deepika-arora <73037462+deepika-arora@users.noreply.github.com> Date: Sat, 24 Oct 2020 08:12:16 +0530 Subject: [PATCH] Update program2.cpp --- program2.cpp | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/program2.cpp b/program2.cpp index 206d622..933c528 100644 --- a/program2.cpp +++ b/program2.cpp @@ -2,6 +2,7 @@ #include #include using namespace std; + void check(stack s) { /* @@ -10,14 +11,14 @@ void check(stack s) s-integer object of stack return value:none approach:-if size of stack is odd - pop an element from stack - while stack is not empty - pop two elements from stach - check whether they are consecutive or not - if elements of atleast one pair is not consecutive - print FALSE - otherwise - print TRUE + pop an element from stack + while stack is not empty + pop two elements from stach + check whether they are consecutive or not + if elements of atleast one pair is not consecutive + print FALSE + otherwise + print TRUE */ int a,b,temp=1; @@ -50,6 +51,7 @@ void check(stack s) cout<<"\tFALSE"; } } + int main() { /*