Share Post:
This program reverses the number given as input by the user. Eg. if user enters 123 the output will be 321.
By Siddique Hassan.
#include <stdio.h>
#include<conio.h>
int main()
{
int n, reverse = 0;
printf("Enter a number to reverse\n");
scanf("%d",&n);
Showing posts with label reverse number program. Show all posts
Showing posts with label reverse number program. Show all posts
Thursday, March 13, 2014
Wednesday, March 5, 2014
C program to reverse a number
#include <stdio.h>
#include <stdlib.h>
int main()
{
int a,num;
printf("enter
the 2-digit number");
Labels:
c program,
reverse number program
Subscribe to:
Posts (Atom)