/* * Author: Amit Dutta (amitdutta4255@gmail.com) | Date: 12 Dec 2025 * Repo: https://github.com/notamitgamer/bsc * License: MIT */ /* Write to reverse a number. */ /* * Compiler Note: This source code is specifically designed for compilation * and execution within the ** Turbo C ** environment. * * Testing Disclaimer: Due to a lack of access to the required Turbo C * compiler software, this code has not been formally compiled or tested. */ #include #include void main() { clrscr(); int n, reverse = 0, rem; printf("Enter the numner : "); scanf("%d", &n); while (n != 0) { rem = n % 10; reverse = reverse * 10 + rem; n /= 10; } printf("Reversed Number : %d", reverse); getch(); }