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 Determine If The Given String Is A Palindrome Or Not.
Write a C program to convert decimal no. to binary.
Write a C program to find the GCD of two numbers.
Write a C program to convert Centigrade temp into Farenhite temp.
Write a C program to find sum of digit of any no.
Write a C program to check a number is even or odd.