Computer Science, asked by vikasbasa1446, 1 year ago

What is a computer algorithm? Write an algorithm to display all palindrome nos. between 1 and 100.

Answers

Answered by kirahinamoriamuchan
0

#include<conio.h>


int main()


{


int n=0, reverse = 0, temp=0, i=0;


n=100;


for(i=1; i<n; i++)


{


temp = i;


while( temp != 0 )


{


reverse *= 10;


reverse += temp % 10;


temp /= 10;


}


if( i == reverse )


printf("%d", n);


else


printf(".");


}


getch();


return 0;


}


Read more on Brainly.in - https://brainly.in/question/4774155#readmore

Similar questions