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

differentiate built-in functions and user – defined functions.

1085


Explain is it better to bitshift a value than to multiply by 2?

1202


What is the stack in c?

1141


c programs are converted into machine language with the help of a) an interpreter b) a compiler c) an operatinf system d) none of the above

1260


Why we use int main and void main?

1078


What is the use of typedef in c?

1031


Explain spaghetti programming?

1250


Can the curly brackets { } be used to enclose a single line of code?

1173


Describe the header file and its usage in c programming?

1072


What is switch in c?

1090


Differentiate call by value and call by reference?

965


What is the use of define in c?

1061


What is pragma in c?

1212


What does %p mean c?

1065


What is the need of structure in c?

1124