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
Linked lists -- can you tell me how to check whether a linked list is circular?
What is indirection in c?
A character flag or control mechanism that delineates one data item from another a) variable b) constant c) delimiter d) call by reference
What is a function in c?
What is uint8 in c?
Explain that why C is procedural?
I just typed in this program, and it is acting strangely. Can you see anything wrong with it?
How do you print an address?
What is else if ladder?
Explain the use of function toupper() with and example code?
Explain pointers in c programming?
Given a valid 24 hour format time find the combination of the value and write a program ,do not hard the value and if any other inputs provided should work with the logic implemented Input: 11:30 Output: 13:10 Input: 18:25 Output: 21:58
How can I manipulate individual bits?
What is the difference between printf and scanf )?
Explain the use of fflush() function?