hello friend I am learning c++. I want to create program to write to find a given number is Armstrong number or not ?
OK, so how would you do it on paper? Is 23 an Armstrong number? Why or why not? Show your working. You can then use that working to determine an algorithm, and from that you can write the program.
Hello, Try this Code: main() { int amm 0 temp 0 n x; printf( enter thealue of n ); scanf( d &n); x n; for(;n>0;) { temp n 10; amm amm+(temp*temp*temp); n n/10; } if(x n) { printf( THE GIVEN NUMBER IS AMSTRONG NUMBER ); } else printf( NOT AMSTRONG NUMBER ); }