Horje
write a program to find reverse of given number Code Example
write a program to find reverse of given number
#include <stdio.h>
int main() {
    int n, rev = 0, remainder;
    printf("Enter an integer: ");
    scanf("%d", &n);
    while (n != 0) {
        remainder = n % 10;
        rev = rev * 10 + remainder;
        n /= 10;
    }
    printf("Reversed number = %d", rev);
    return 0;
}




16

Related
load and display figure in python Code Example load and display figure in python Code Example
take array as input in c Code Example take array as input in c Code Example
install *.deb file in ubuntu Code Example install *.deb file in ubuntu Code Example
random number c Code Example random number c Code Example
factorial c program using for loop Code Example factorial c program using for loop Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
10