Download as doc, pdf, or txt
Download as doc, pdf, or txt
You are on page 1of 1

MECHANICAL BATCH

CS 110: Midterm Examination


Q1:-WAP to print the below mentioned pattern.
*
*A*
*A*A*
*A*A*A*

Q2:- WAP to find nCr and nPr using function. Take the input n from the user.
nCr = n!/(r!*(n-r)!)
nPr = n!/(n-r)!

You might also like