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

Explain how can I prevent another program from modifying part of a file that I am modifying?

627


What are types of structure?

595


How do I create a directory? How do I remove a directory (and its contents)?

596


What is the difference between text and binary modes?

633


What is the difference between break and continue?

598






What language is windows 1.0 written?

563


write a programe to accept any two number and check the following condition using goto state ment.if a>b,print a & find whether it is even or odd and then print.and a

1442


What are keywords c?

592


What is array in c with example?

605


What type of function is main ()?

574


Is it acceptable to declare/define a variable in a c header?

675


if a is an integer variable, a=5/2; will return a value a) 2.5 b) 3 c) 2 d) 0

1433


What is the difference between #include

and #include “header file”?

541


What are the key features in c programming language?

600


What are header files? What are their uses?

628