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 print the following output.
1
2 2
3 3 3
4 4 4 4
5 5 5 5 5
Briefly discuss about Critical Path Method (CPM)
Write short note on
Iridium satellite system
What operations can be performed on Queues?
Discuss Analysis Modeling Concepts and Approaches
Write a C program to find a number is AMSTRONG or NOT.