Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions new file 22
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#include <stdio.h>

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;
}
17 changes: 17 additions & 0 deletions queue new
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
queue<int> 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;