Professional Documents
Culture Documents
Shazina Yousaf Miss Reema: Dsa Lab 2
Shazina Yousaf Miss Reema: Dsa Lab 2
1.Write a program to get 20 numbers from user, separate even odd numbers
and place then in 2 different stacks and their sum in 3rd stack.
Program:
Department of SE 1
DSA LAB 2
Department of SE 2
DSA LAB 2
Department of SE 3
DSA LAB 2
Department of SE 4
DSA LAB 2
Department of SE 5
DSA LAB 2
Department of SE 6
DSA LAB 2
Department of SE 7
DSA LAB 2
Department of SE 8
DSA LAB 2
Output
Department of SE 9
DSA LAB 2
2.
Write a program to get 15 numbers from user and place less than 10 in 1
stack, less than 20 in 2nd stack and less than 30 in 3rd stack. And then display.
Program:
Department of SE 10
DSA LAB 2
Department of SE 11
DSA LAB 2
Department of SE 12
DSA LAB 2
Department of SE 13
DSA LAB 2
Department of SE 14
DSA LAB 2
Output
Department of SE 15