Do In LAB (20-02-2013)

posted Feb 19, 2013, 11:06 PM by Salah Ibrahim   [ updated Feb 19, 2013, 11:06 PM by Karwan Jacksi ]
Q1.  Write a c++ program to print pluses like follows :
        ++++++++
        +++++++
        ++++++
        +++++
        ++++
        +++
        ++
        +
        and put result on a file.

Q2.  Write a c++ program to print the following series and put result on a file:
        1 2 4 8 16 32 64 128

Q3. Write a c++ program that calculates the factorial of any entered number.
       Example:
       -------------
       Enter a number : 5
       Factorial of 5 : 120

Q4. Write a c++ program that works from 0 to 255 and print them as keyboard symbols.

Q5. Write a c++ program that calculates the multiplication table for any entered number.
       Example:
       -------------
       Enter a number : 6
       6 * 1 = 6
       6 * 2 = 12
       6 * 3 = 18
       6 * 4 = 24
       6 * 5 = 30
       6 * 6 = 36
       6 * 7 = 42
       6 * 8 = 48
       6 * 9 = 54
       6 * 10 = 60

Q6. Write a c++ program that prints numbers from 1-20,
       then from 30-40 only evens and put them on a file.
        
Comments