Program to find the sum of digits of a given number until the sum becomes a single digit. (e.g. 12345=>1+2+3+4+5=15=>1+5=6)
No Answer is Posted For this Question
Be the First to Post Answer
in iso what are the common technological language?
If I want to initialize the array like. int a[5] = {0}; then it gives me all element 0. but if i give int a[5] = {5}; then 5 0 0 0 0 is ans. what will I do for all element 5 5 5 5 5 in a single statement???
difference between string and array?
Explain how do you print only part of a string?
How to add two numbers without using semicolon n c????
How do I use void main?
what are enumerations in C
code for bubble sort?
What is static and auto variables in c?
Can a program have two main functions?
write a program to print infinte number
There are N egg baskets and the number of eggs in each basket is a known quantity. Two players take turns to remove these eggs from the baskets. On each turn, a player must remove at least one egg, and may remove any number of eggs provided they all belong to the same basket. The player picking the last egg(s) wins the game. If you are allowed to decide who is going to start first, what mathematical function would you use to decide so that you end up on the winning side?