Write an program to generate Pascal’s triangle.
#include <stdio.h> #include <conio.h> main() { int a[10][10],i,j,k,n; clrscr(); printf("Enter the height of the pascal traingle"); scanf("%d",&n); for(i=0;i<n;i++) { for(k=1;k<=n-i;k++) printf(" "); for(j=0;j<=i;j++) { if(j==0 || i==j) a[i][j]=1; else a[i][j]=a[i-1][j-1]+a[i-1][j]; printf("%d ",a[i][j]); } printf("\n"); } }
Write a C program to print the following output.
1
2 2
3 3 3
4 4 4 4
5 5 5 5 5
Write a C- Program To Determine If The Given String Is A Palindrome Or Not.
Write a C-Program That Uses Functions To Insert A Sub-String In To A Given Main String From A Given Position.
What is “Top-Down and Bottom-Up Design” approach?
Write a C program to find the multiplication table of any no.
Write an program to generate Pascal’s triangle.
Write a C program to find the GCD of two numbers.