C program to reverse a given number
kw.c
Output
kodingwindow@kw:~$ gcc kw.c
kodingwindow@kw:~$ ./a.out ——————————————————————————————————————————— Program to reverse a given number ——————————————————————————————————————————— Enter the number 5 Unable to reverse the negative and single-digit number. ——————————————————————————————————————————— kodingwindow@kw:~$ ./a.out ——————————————————————————————————————————— Program to reverse a given number ——————————————————————————————————————————— Enter the number 65535 The reverse number is 53556 ——————————————————————————————————————————— kodingwindow@kw:~$
What Next?
C program for the addition of N natural numbers
C program to convert a binary number to an equivalent decimal number
C program to demonstrate the static and local variables
Advertisement