5.15.2016

Diagonal Number Pattern In C

Q. Write a C program to make a diagonal number pattern as following design:

         1
        2
       3
      4
     5

Ans.

/* c program source code for diagonal number pattern*/

Continuous Table C Program

Q. how to make a continuous table for all number in C language like as following:

     1 2 3  4  5
     2 4 6  8  10
     3 6 9  12 15
     4 8 12 15 20

Ans.

/* c program to make a continuous table c program */