Write a C program to find a number is AMSTRONG or NOT.
#include<stdio.h> #include<conio.h> main() { int n,x,digit,s=0; printf("\n enter any number"); scanf("%d",&n); x=n; do { digit=n%10; s=s+digit*digit*digit; n=n/10; }while(n>0); if(s==t) printf("\n the number is AMSTRONG"); else printf("\n the number is NOT AMSTRONG"); getch(); }
Output:
Write a C- Program To Determine If The Given String Is A Palindrome Or Not.
Short Notes : UML
Distinguish Testing vs. Quality Control & Assurance and Audit
Write short note on
Iridium satellite system
Write a C program to check a number is even or odd.