Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

simple c program for 12345 convert 54321 with out using string

Answer Posted / vignesh1988i

hi good morning folks... happy sunday.......

#include<stdio.h>
#include<conio.h>
void main()
{
int n,m;
printf("enter the number :");
scanf("%d",&n);
for(int i=1;n>0;i++)
{
m=n%10;
n=n/10;
printf("\n %d",m);
}
getch();
}


thank u

Is This Answer Correct ?    31 Yes 11 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How will you write a code for accessing the length of an array without assigning it to another variable?

1026


Explain about the constants which help in debugging?

1335


what is the structure pointer?

2090


How to Throw some light on the splay trees?

1028


Explain how can you tell whether two strings are the same?

995


write a sorting prgm to sort 50 nos and sum them and also remove all the occurrences of 15 and print it?

2100


GIVEN A FLOATING POINT NUMBER HOW IS IT ACTUALLY STORED IN MEMORY ? CAN ANYONE EXPLAIN?? THE 32 BIT REPRESENTATION OF A FLOATING POINT NUMBER ALLOTS: 1 BIT-SIGN 8 BITS-EXPONENT 23 BITS-MANTISSA

1849


What are the disadvantages of c language?

1147


What is a header file?

1048


Explain the use of keyword 'register' with respect to variables.

988


What is a example of a variable?

974


What is function prototype?

1089


What is 'bus error'?

1113


How do I swap bytes?

1043


Explain how can I remove the trailing spaces from a string?

1015