Computer Science, asked by shivam2019lpu, 11 months ago

Q2. Stack
Himanshu is working as a Librarian in lovely professional university. His shift is going to be over soon. So he has to place n number of books having some number allocated to each book in the order of stack. Help him to place the books in the form of stack.
Input Format
2 11 12
Constraints
number of books must be greater than 0 and less than or equals to 10 and place the books in horizontal manner
Output Format
12 11
Sample Input 0

0

Sample Output 0

Invalid Books

Sample Input 1

11

Sample Output 1

Invalid Books

Sample Input 2

2
101
102

Sample Output 2

102 101​

Answers

Answered by anjalic386
1

Answer:

Answer :

Step by step Explanations :

Himanshu is working as a Librarian in lovely professional university. His shift is going to be over soon. So he has to place n number of books having some number allocated to each book in the order of stack. Help him to place the books in the form of stack.

Input Format

2 11 12

Constraints

number of books must be greater than 0 and less than or equals to 10 and place the books in horizontal manner

Output Format

12 11

Sample Input 0

0

Sample Output 0

Invalid Books

Hope this is helpful

Mark me as brainlist

Similar questions
Math, 11 months ago