This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

check Armstrong number in the C program

MY result: Sum of each digit^no. of digits =9 370 isn't an armstrong number 

Likewise, if i don't add the #define pow line,i get the following error. /usr/bin/ld: /tmp/ccGBiCYH.o: in function main': 7.c:(.text+0xda): undefined reference to pow' collect2: error: ld returned 1 exit status. 

Before trying this code I Read several Articles on the web on Armstrong number in C to understand the concept in a better way, Here, is the article I've read from Wikipedia, Scaler and Quora.

0