wap in c to accept a number display the total count of digit

Answer Posted / sashidharan

main()
{
int n,count=0;
scanf("%d",&n);
for(i=0;i<=n;i++)
{
count=count+1;
}
printf("total count of digit",count);
}

Is This Answer Correct ?    22 Yes 20 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

main(){char *str;scanf("%s",str);printf("%s",str); }The error in the above program is: a) Variable 'str' is not initialised b) Format control for a string is not %s c) Parameter to scanf is passed by value. It should be an address d) none

728


On most computers additional memory that is accessed through an adapter of feature card along with a device driver program. a) user memory b) conventional memory c) expandedmemory d) area

669


what is associativity explain what is the precidence for * and & , * and ++ how the folloing declaration work 1) *&p; 2) *p++;

1892


What are the types of assignment statements?

633


What is union and structure?

578






can anyone please tell about the nested interrupts?

1679


Why is c platform dependent?

627


how logic is used

1504


what is the difference between class and unio?

1866


What is the purpose of sprintf() function?

609


Combinations of fibanocci prime series

1116


how to create duplicate link list using C???

2081


What are the 4 types of organizational structures?

627


Describe the order of precedence with regards to operators in C.

637


write an algorithm to display a square matrix.

2229