Home C C++ Java Python Perl PHP SQL JavaScript Linux Selenium QT Online Test

Home » Assignment on C & C++ for beginners

Assignments on C & C++ for beginners

You can solve these assignments using any loop (for, while, do-while). Please don't hard code number of lines, take input from user and show output accordingly.


Problem 1:
*
**
***
****
*****


Problem 2:
1
12
123
1234
12345


Problem 3:
A
AB
ABC
ABCD
ABDEF


Problem 4:
FEDCBA
FEDCB
FEDC
EED
FE
F


Problem 5:
      *
     ***
    ***** 
   *******
  *********


Problem 6:
1
2 3
4 5 6
7 8 9 10


Problem 7:
*********
*******
*****
***
* 
*
***
***** 
*******
*********