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
What is the main difference between calloc () and malloc ()?
What is time null in c?
main() { inta=10,b=20; a>=5?b=100:b=200; printf("%d ",b); }
What is pre-emptive data structure and explain it with example?
How can a process change an environment variable in its caller?
5 Write an Algorithm to find the maximum and minimum items in a set of ānā element.
What is the use of parallelize in spark?
what are # pragma staments?
why to assign a pointer to null sometimes??how can a pointer we declare get assigned with a garbage value by default???
Differentiate between new and malloc(), delete and free() ?
What is c system32 taskhostw exe?
Can a pointer be static?
Explain what are the different file extensions involved when programming in c?
The postoder traversal is 7,14,3,55,22,5,17 Then ur Inorder traversal is??? please help me on this
What are the two forms of #include directive?