Techpalace

Ultimate destination for teech tips,blogging ,seo,internet

Menu

  • Home

C program to reverse a number


#include <stdio.h>

int main()
{
   int n, reverse = 0;

   printf("Enter a number to reverse\n");
   scanf("%d",&n);

   while (n != 0)
   {
      reverse = reverse * 10;
      reverse = reverse + n%10;
      n = n/10;
   }

   printf("Reverse of entered number is = %d\n", reverse);

   return 0;
}
Email ThisBlogThis!Share to XShare to Facebook
Posted in c programms on 12:07 PM by thedev27 |  
Newer Post Older Post Home
Powered by Blogger.

Popular Posts

  • Cirque du Soleil is dancing with drones
    AppId is over the quota AppId is over the quota g one-button ordering devices for your smart home 7:40 AM Samsung Gear S smartwatch com...
  • write a C program for prime number
    #include<stdio.h> int main() {    int n, i = 3, count, c;    printf("Enter the number of prime numbers required...
  • Modern magic: World's first 3D-printed castle
    This castle was built with magic -- the technological kind. Andrey Rudenko A castle materializes out of thin air without hundreds of stone...
  • HOW TO GET UNLIMITED PREMIUM/FREE UNLIMITED SPACE HOSTINGS
    many people want to try thei first trial with free domain and hosting……………………………………… dont worry .here i am listing good unlimited/prem...
  • How To Create a SSL Certificate on Nginx for Ubuntu 14.04
    f you just want the Nginx web server, you can instead just type: sudo apt-get update sudo apt-get install nginx Step One — Create the...
  • Watch a Faraday cage dress take a million volts of electricity
    Kyle Cothern/Anouk Wipprecht We get excited about Tesla coils, but they are pretty dangerous. Those long, stunning arcs of electrical power...
  • write a C program to print diamond pattern
    *  *** *****  ***   * #include <stdio.h> int main() {   int n, c, k, space = 1;   printf("Enter...
  • ​Apple, AmEx teaming on iPhone 6 payments system, report says
    "http://cnet4.cbsistatic.com/hub/i/r/2014/01/23/7d110d58-83f0-11e3-86d7-14feb5ca9861/resize/370xauto/2f160031a46d1233681daa7d2d98f668/s...
  • Sony Smartwatch 3 coming to U.S. soon for $250, and it runs Android Wear
    AppId is over the quota AppId is over the quota 0:45 / October 9, 2014 Sony's new smartwatch runs Android Wear, and has built-in GPS fo...
  • Nokia Lumia 520 Full phone specification
    General     2G Network     GSM 850 / 900 / 1800 / 1900 - all versions 3G Network     HSDPA 900 / 2100 - RM-914       HSDPA 850 / 1900 / 2...

Pages

  • Home
  • Seo
  • C programms
  • airtel
  • How to tutorial
  • Cracked softwares

Popular Posts

  • Cirque du Soleil is dancing with drones
    AppId is over the quota AppId is over the quota g one-button ordering devices for your smart home 7:40 AM Samsung Gear S smartwatch com...
  • write a C program for prime number
    #include<stdio.h> int main() {    int n, i = 3, count, c;    printf("Enter the number of prime numbers required...
  • Modern magic: World's first 3D-printed castle
    This castle was built with magic -- the technological kind. Andrey Rudenko A castle materializes out of thin air without hundreds of stone...
  • HOW TO GET UNLIMITED PREMIUM/FREE UNLIMITED SPACE HOSTINGS
    many people want to try thei first trial with free domain and hosting……………………………………… dont worry .here i am listing good unlimited/prem...
  • How To Create a SSL Certificate on Nginx for Ubuntu 14.04
    f you just want the Nginx web server, you can instead just type: sudo apt-get update sudo apt-get install nginx Step One — Create the...
  • Watch a Faraday cage dress take a million volts of electricity
    Kyle Cothern/Anouk Wipprecht We get excited about Tesla coils, but they are pretty dangerous. Those long, stunning arcs of electrical power...
  • write a C program to print diamond pattern
    *  *** *****  ***   * #include <stdio.h> int main() {   int n, c, k, space = 1;   printf("Enter...
  • ​Apple, AmEx teaming on iPhone 6 payments system, report says
    "http://cnet4.cbsistatic.com/hub/i/r/2014/01/23/7d110d58-83f0-11e3-86d7-14feb5ca9861/resize/370xauto/2f160031a46d1233681daa7d2d98f668/s...
  • Sony Smartwatch 3 coming to U.S. soon for $250, and it runs Android Wear
    AppId is over the quota AppId is over the quota 0:45 / October 9, 2014 Sony's new smartwatch runs Android Wear, and has built-in GPS fo...
  • Nokia Lumia 520 Full phone specification
    General     2G Network     GSM 850 / 900 / 1800 / 1900 - all versions 3G Network     HSDPA 900 / 2100 - RM-914       HSDPA 850 / 1900 / 2...
Copyright © Techpalace | Powered by Blogger
Design by Theme Weaver | Blogger Theme by Lasantha - PremiumBloggerTemplates.com
tap