Customer Service Chat
Get quote & make Payment
Find error for curious number, Data Structure & Algorithms
int sumFact(int numb);
int calculateFactorial(int digit);
int numb, sumfact;
printf ("Enter a number 1 to 9999\n");
while (!(numb >= 1 && numb <=9999));
sumfact = sumFact(numb);
if (numb == sumfact)
printf("\nThe Number %d you entered is curious number", numb);
printf("\n not a curious number", numb);
int sumFact (int numb)
int rightdigit, sumfact = 0;
while (numb != 0)
rightdigit = numb%10;
numb = numb /10;
sumfact = sumfact + calculateFactorial (rightdigit);
int calculateFactorial (int digit)
if ((digit == 0 ) && (digit == 1))
factval = digit*calculateFactorial (digit-1);
Posted Date: 3/16/2013 4:55:04 PM | Location : United Arab Emirates
Ask an Expert
Find error for curious number, Assignment Help, Ask Question on Find error for curious number, Get Answer, Expert's Help, Find error for curious number Discussions
Write discussion on Find error for curious number
Your posts are moderated
Write your message here..
Define wire-frame model, Define Wire-frame Model This skeletal view is ...
Define Wire-frame Model This skeletal view is called a Wire-frame Model. Although not a realistic representation of the object, it is still very useful in the early stages of
Logic circuits, the voltage wave forms are applied at the inputs of an EX-O...
the voltage wave forms are applied at the inputs of an EX-OR gate. determine the output wave form
Programs, Develop a program that accepts the car registration( hint: LEA 43...
Develop a program that accepts the car registration( hint: LEA 43242010)
Write an algorithm for binary search., Write an algorithm for binary search...
Write an algorithm for binary search. Algorithm for Binary Search 1. if (low> high) 2. return (-1) 3. Mid = (low + high)/2 4. if ( X = = a[mid]) 5. return (mid); 6.
Sorting algorithm, Sorting Algorithm A sorting algorithm is an algorit...
Sorting Algorithm A sorting algorithm is an algorithm which puts elements of a list in a certain order. The most-used orders are numerical order and lexicographical order. Eff
2 Flow Charts, 1.Create a flowchart to show the process that will allow the...
1.Create a flowchart to show the process that will allow the implementation of Stack, Push, and Pop operations. 2.Create a flowchart to show the process that will allow the impleme
Maximum degree of any vertex in a simple graph, The maximum degree of any v...
The maximum degree of any vertex in a simple graph with n vertices is (n-1) is the maximum degree of the vertex in a simple graph.
The time and space complexities of an algorihm, Relation between the time a...
Relation between the time and space complexities of an algorithm The examining of algorithm focuses on time complexity and space complexity. As compared to time analysis, the a
Luminous Jewels - The Polishing Game, Byteland county is very famous for lu...
Byteland county is very famous for luminous jewels. Luminous jewels are used in making beautiful necklaces. A necklace consists of various luminous jewels of particular colour. Nec
Explain internal and external nodes, Explain Internal and External Nodes ...
Explain Internal and External Nodes To draw the tree's extension by changing the empty subtrees by special nodes. The extra nodes shown by little squares are know
Accounting Assignment Help
Economics Assignment Help
Finance Assignment Help
Statistics Assignment Help
Physics Assignment Help
Chemistry Assignment Help
Math Assignment Help
Biology Assignment Help
English Assignment Help
Management Assignment Help
Engineering Assignment Help
Programming Assignment Help
Computer Science Assignment Help
Why Us ?
~24x7 hrs Support
~Quality of Work
~Time on Delivery
~Privacy of Work
Human Resource Management
Literature Review Writing Help
Terms & Conditions
Copyright by ExpertsMind IT Educational Pvt. Ltd.