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 explain clearly about execution of c program in detail,in which stage are the printf sacnf getting into exeecutable code
What is a const pointer?
What is && in c programming?
What is #line in c?
What is spaghetti programming?
What is pivot in c?
Find MAXIMUM of three distinct integers using a single C statement
What is static memory allocation? Explain
What are compound statements?
I heard that you have to include stdio.h before calling printf. Why?
What is meant by errors and debugging?
Which is better oop or procedural?
Why c is a procedural language?
What is the significance of scope resolution operator?
What is an lvalue?