how to find sum of digits in C?

Answer Posted / mokhtar

all your answers are wrong, guys, for example when you get the reminder of 2/10, it gives you 0, because all of you used int as a data type.
so I think the the method is right, but the implementation is wrong.

regards.

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain b+ tree?

639


please give me a VIRTUSA sample palcement papers.... you will only send TECHNICAL SECTION..... that is help for me Advance Thanks........................

1545


Write a program to print factorial of given number using recursion?

609


Implement bit Array in C.

683


What is the use of extern in c?

657






What are header files? What are their uses?

649


Between macros and functions,which is better to use and why?

1578


Why are algorithms important in c program?

629


What are the different data types in C?

736


When should we use pointers in a c program?

643


What does %d do?

736


in iso what are the common technological language?

1643


What does typeof return in c?

646


program to convert a integer to string in c language'

1992


Create a structure to specify data on students given below: Roll number, Name, Department, Course, Year of joining Assume that there are not more than 450 students in the college. 1.write a function to print names of all students who joined in a particular year 2.write a function to print the data of a student whose roll number is given

2530