CP Lab-5
Post date: Oct 23, 2017 10:28:31 AM
1. Write a program to swap the value of two variable.
for example:-
value before swapping value after swapping
a=10 a=20
b=20 b=10
2. Write a program to print half pyramid using *
*
* *
* * *
* * * *
* * * * *
3. Write a program to print Inverted half pyramid using numbers
1 2 3 4 5
1 2 3 4
1 2 3
1 2
1