Complete Video Learning
Table of Contents
#include<stdio.h>
#include<conio.h>
void main()
{
int n, rev = 0, rem;
printf("Enter an number: ");
scanf("%d", &n);
while (n != 0) {
rem = n % 10;
rev = rev * 10 + rem;
n /= 10;
}
printf("Reversed number = %d", rev);
getch();
}
Enter the number: 345
Reverse number = 543
SHOW YOUR SUPPORT FOR NIELITBHU..!!
Dear reader, thank you for joining us. Readers like you are an inspiration for us to pursue NIELITBHU. We need your support or cooperation to further empower NIELITBHU and reach NIELITBHU more people in every corner of the country. Your every support is invaluable to our future.