Biplab-313 / C_language_Q-A

This is the repo where we discuss on C programming language related Q&A
MIT License
2 stars 3 forks source link

Regenerate the C program #1

Closed Biplab-313 closed 1 month ago

Biplab-313 commented 1 month ago

Palindrome Number Program

`

include

int main() { int num, reverse = 0, remainder, original;

// Input a number
printf("Enter a number: ");
scanf("%d", &num);

original = num;

// Reverse the number
while (num != 0) {
    remainder = num % 10;
    reverse = reverse * 10 + remainder;
    num /= 10;
}

// Check if palindrome
if (original == reverse)
    printf("%d is a palindrome number.\n", original);
else
    printf("%d is not a palindrome number.\n", original);

return 0;

} `

Create Palindrome String Program and upgrade the Palindrome Number Program

Not create a basic one

SnehaghoshBarsha444 commented 1 month ago

@Biplab-313 sir , I'm interested in it Can you assign me?