Sunday, 12 December 2010

Flow chart for To generate Pascal’s triangle





Output:


1.enter the how many lines to print5
  1
1 1
                                  1 2 1
           1 3  3 1
        1  4  6  4 1

2.enter the how many lines to  print3

  1
1 1
                                  1 2 1






Conclusion: the program is error free


VIVA QUESTIONS:

1) What is meant by Pascal’s triangle ?

Ans: Pascal’s triangle which is used for a coefficient in the equation in polynominals

2)Define structure ?

Ans: A structure in c is a heterogenous user efined data type. A structure may contain different data types.It groups variables into a single entity.





No comments:

Post a Comment