how to find out the reverse number of a digit if it is
input through the keyboard?

Answer Posted / prince rafi

void main()
{
int num,m,temp=0;
clrscr();
printf("enter the value of num);
do
{
m=m%10;
temp=(temp*10)+m;
num=num/10;
}
while(num>0);
printf("%d",sum);
}
getch();
}

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does static variable mean in c?

641


Does c have circular shift operators?

716


How do I convert a string to all upper or lower case?

621


What is structure data type in c?

562


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

626






What are register variables in c?

564


What is the use of printf() and scanf() functions?

622


What header files do I need in order to define the standard library functions I use?

530


Explain which of the following operators is incorrect and why? ( >=, <=, <>, ==)

600


Is c is a middle level language?

591


What is the use of volatile?

602


If fflush wont work, what can I use to flush input?

602


Explain what are global variables and explain how do you declare them?

633


we called a function and passed something do it we have always passed the "values" of variables to the called function. such functions calles are called a) calls by reference b) calls by value c) calls by zero d) none of the above

628


we need to calculating INCOME TAX for the person. The INCOME TAX is as follows:- First $10000/- of income : 4% tax Next $10000/- of income : 8% tax Next $10000/- of income : 11.5% tax above $10, 00,00/- : 15% tax What is the Solution of this Question ?

800