#include <stdio.h>
#include<conio.h>
void main()
{
int rows, cal = 1, space, i, j;
printf("Enter number of rows: ");
scanf("%d",&rows);
for(i=0; i<rows; i++)
{
for(space=1; space <= rows-i; space++)
printf(" ");
for(j=0; j <= i; j++)
{
if (j==0 || i==0)
cal = 1;
else
cal = cal*(i-j+1)/j;
printf("%4d", cal);
}
printf("\n");
}
getch();
}
दोस्तों अगर आपको मेरी यह पोस्ट अच्छी लगी हो तो
प्लीज like , share ,कमेंट, सब्सक्राइब जरुर करे जिससे हम आपके
लिए ऐसे ही अच्छे से अच्छे पोस्ट लाते रहे
अगर आपके पास कोई प्रश्न हो तो कमेंट बॉक्स में उस प्रश्न जरुर लिखे
धन्यवाद !
No comments:
Post a Comment
for more information please share like comment and subscribe