Check if integer is a palindrome in base 10 Here is the solution-&gt;
//Write a program to check the number whether it is palindrome or not
#include &lt;stdio.h&gt;
int
main(void){

//Put variables for the further proceed
int number, quotient=1, remainder,i=0;

//To declare a character array
char text[100];

//To show the message to the user
printf(&quot;Enter an integer number :&quot;);

//Taking input from the user
scanf(&quot;%d&quot;,&amp;number);

//For finding escape the integer number in the reverse order specifically
int number_update=number;

//To find out the integer number in the reverse order
  while(quotient!=0){
  quotient=number_update/10;
  remainder=number_update%10;
  number_update=quotient;
  text[i] = remainder + '0';//Converts integer to character and store to the array
  i++;
  }
 //Converts the string to a whole integer
  int result_of_reverse=atoi(text);

  //Check the result of reverse order with the given integer number
  if(result_of_reverse==number){

    //To display the result
    printf(&quot;This is a palindrome number&quot;);
  }
  else{

    //To display the result
    printf(&quot;This is not a palindrome number&quot;);
  }

  }

I want to achieve: How can I simplify my solution? Is there any better strategy should I follow to solve these types of problems?
Too many comments, and they do not serve any purpose.

Use all necessary #includes. atoi requires #include &lt;stdlib.h&gt;.

Separate IO from the business logic. Constructing the reversed number definitely belongs to a function.

There is no need to convert the number into a textual representation. Consider building the reversed number as you compute the digits of the original:
int reverse (int number) 
{
    int reversed = 0;
    while (number != 0) {
        int last_digit = number % 10;
        number /= 10;
        reversed *= 10;
        reversed += last_digit;
    }
    return reversed;
}

As a side effect, many variables (quotient, remainder, number_update, i) disappear.