Explore
ProGrad Programs
About Us

Edit
Reply




Edit

Diamond pattern printing using numbers | FACE Prep

Published on 11 Mar 2020

Programs for diamond pattern printing using numbers is discussed here.


Half diamond pattern printing using numbers


Input:

3 4


Output:

3

44

555

6666

555

44

3


Program for half diamond pattern printing using numbers


C
C++
Java

Output
Input -
4 4
Output -
4
55
666
7777
666
55
4


Half diamond using numbers and stars


Input :

4


Output:

1

2*2

3*3*3

4*4*4*4

4*4*4*4

3*3*3

2*2

1


Program for half diamond pattern printing using numbers and stars


C
C++
Java

Output
Input -
4
Output -
1
2*2
3*3*3
4*4*4*4
4*4*4*4
3*3*3
2*2
1


Half diamond pattern using numbers and stars


Input:

4


Output:

1

2*3

4*5*6

7*8*9*10

7*8*9*10

4*5*6

2*3

1


Program to print diamond pattern using numbers and stars


C
C++
Java

Output
Input -
4
Output -
1
2*3
4*5*6
7*8*9*10
7*8*9*10
4*5*6
2*3
1


Recommended Programs






If you have any feedback about this article and want to improve this, please write to enquiry@faceprep.in
Explore 'c'
Articles