From 64030699cfc0eb588d1e2d38b049a6d5e59af4da Mon Sep 17 00:00:00 2001 From: nishi sharma <72256682+nishisharma842004@users.noreply.github.com> Date: Tue, 26 Oct 2021 00:59:59 +0530 Subject: [PATCH 1/2] Create queue new --- queue new | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 queue new diff --git a/queue new b/queue new new file mode 100644 index 0000000..4a086fd --- /dev/null +++ b/queue new @@ -0,0 +1,17 @@ + queue gquiz; + gquiz.push(10); + gquiz.push(20); + gquiz.push(30); + + cout << "The queue gquiz is : "; + showq(gquiz); + + cout << "\ngquiz.size() : " << gquiz.size(); + cout << "\ngquiz.front() : " << gquiz.front(); + cout << "\ngquiz.back() : " << gquiz.back(); + + cout << "\ngquiz.pop() : "; + gquiz.pop(); + showq(gquiz); + + return 0; From f9110a2dc0ab9c524da1b4cc43be4bc7ac44b380 Mon Sep 17 00:00:00 2001 From: nishi sharma <72256682+nishisharma842004@users.noreply.github.com> Date: Tue, 26 Oct 2021 01:32:51 +0530 Subject: [PATCH 2/2] Create new file 22 nf --- new file 22 | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 new file 22 diff --git a/new file 22 b/new file 22 new file mode 100644 index 0000000..7d95db3 --- /dev/null +++ b/new file 22 @@ -0,0 +1,20 @@ +#include + +int main() +{ + int j, start, end; + + /* Input start and end limit from user */ + printf("Enter starting value: "); + scanf("%d", &start); + printf("Enter end value: "); + scanf("%d", &end); + + /** Run loop from 'start' to 'end' and decrement by 1 in each iteration */ + for(j=start; j>=end; j--) + { + printf("%d\n", j); + } + + return 0; +}