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...

Print all numbers which has a certain digit in a certain
position
eg:
number=45687
1 number=4
2 number=5
etc

Answer Posted / vaibhav

#include<stdio.h>
#include<conio.h>
void main()
{
int n,t,i,cnt=1;
clrscr();
printf("\nEnter The No.");
scanf("%d",&n);
while(n%10!=0)
{
n=n%10;
t=n/10;
printf("\n %d number= %d",cnt,t);
cnt++;
}
getch();
}

Is This Answer Correct ?    2 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain what are header files and explain what are its uses in c programming?

1206


What is the purpose of 'register' keyword in c language?

1076


What are the string functions? List some string functions available in c.

1045


Explain what are multibyte characters?

1257


What is the difference between char array and char pointer?

1123


Explain how can type-insensitive macros be created?

1044


Write a program to show the change in position of a cursor using c

1126


How can you pass an array to a function by value?

1182


What is the role of this pointer?

1130


Can an array be an Ivalue?

1143


Write a program to generate random numbers in c?

1160


What is zero based addressing?

1239


What is a shell structure examples?

1155


Tell me with an example the self-referential structure?

1079


Is it better to use a macro or a function?

1210