Write a C program to Find the reverse of the number

#include<stdio.h>
main(){
    int m, n, f;
    n = 0;
    printf("enter any number");
    scanf("%d", &m);
    while (m != 0)
    {
        n =n*10+ m % 10;
        m = m / 10;
    }
    printf("reverse no is %d",n);
}

Post a Comment

0 Comments