
It seems that it is not able to locate math library. While compiling this program gives an error:
undefined reference to'pow'
I am completely clueless about this.
#include <stdio.h>
#include <math.h>
int main() {
    int number1, temp, number2 = 0, x, count = 0;
    printf ("Enter number: ");
    scanf("%d", &number1);
    x = number1;
    while (number1 > 0)
    {
        temp = number1 % 10;
        number2 = (number2 + temp)*pow(10, count++);
        number1 = number1/10;
    }
    printf("The original number order was: %d\n", x);
    printf("\n");
    printf("The reverse number order is: %d\n", number2);
    return 0;
}
 
     
     
     
    