Horje
reverse a number in c Code Example
reverse a number in c
#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
show image in matplotlib Code Example show image in matplotlib Code Example
remove element from np array Code Example remove element from np array Code Example
what is strikethrough in markdown Code Example what is strikethrough in markdown Code Example
invoke-webrequest download file Code Example invoke-webrequest download file Code Example
how to download file in powershell Code Example how to download file in powershell Code Example

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