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 / eranna

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

}

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the main difference between calloc () and malloc ()?

1170


What is time null in c?

1084


main() { inta=10,b=20; a>=5?b=100:b=200; printf("%d ",b); }

1567


What is pre-emptive data structure and explain it with example?

3744


How can a process change an environment variable in its caller?

1195


5 Write an Algorithm to find the maximum and minimum items in a set of ā€˜n’ element.

2124


What is the use of parallelize in spark?

1035


what are # pragma staments?

2052


why to assign a pointer to null sometimes??how can a pointer we declare get assigned with a garbage value by default???

1986


Differentiate between new and malloc(), delete and free() ?

1197


What is c system32 taskhostw exe?

1035


Can a pointer be static?

1093


Explain what are the different file extensions involved when programming in c?

1122


The postoder traversal is 7,14,3,55,22,5,17 Then ur Inorder traversal is??? please help me on this

3587


What are the two forms of #include directive?

1177