Write a C program to find a no. is PALINDROME or NOT.
#include<stdio.h> #include<conio.h> main() { int n,x,digit,r=0; printf("\n enter any number"); scanf("%d",&n); x=n; do { digit=n%10; r=r*10+digit; n=n/10; }while(n>0); if(x==r) printf("\n the number is PALINDROME"); else printf("\n the number is NOT PALINDROME"); getch(); }
Output:
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 an program to generate Pascal’s triangle.
Short Notes : UML
Discuss Quality Assurances