Do In Lab (25-03-2013)

posted Mar 25, 2013, 12:13 AM by Salah Ibrahim   [ updated Mar 26, 2013, 11:39 PM by Karwan Jacksi ]

Q1. Write a c++ function to print the following shape:

                         $ # #

                         # $ #

                         # # $

-----------------------------------------------------------------


Q2. Write a c++ function that checks an entered number if its odd or even.

-----------------------------------------------------------------


Q3. Write two c++ functions  one for factorial and another for power, then use these two 

       functions to solve this equation : 

                                                                        R=1!/n^1 +  3!/n^3 + 5!/n^5 … m!/n^m 

Comments