Given a number N, product(N) is the product of the digits of N. We can then form a sequence N, product(N), product(product(N))… For example, using 99, we get the sequence 99, 99 = 81, 81 = 8. Input Format: A single integer N Output Format: A single integer which is the number of steps after which a single digit number occurs in the sequence. Sample Test Cases: Input #00: 99 Output #00: 2 Explanation: Step - 1 : 9 * 9 = 81 Step - 2 : 8 * 1 = 8 There are 2 steps to get to this single digit number. Input #01: 1137638147
2 4444i am using gsm modem ! I USE CMGL COMMAND TO DISPLAY THE LIST OF MESSAGES ! I WANT TO READ EACH MESSAGE ONE BY ONE AND GET EACH MESSAGE INDEX USING C PROGRAM ! THE RESPONSE OF THE MODULE AFTER AT+CMGL IS ---CMGL: 1,"REC READ","+85291234567",,"07/05/01,08:00:15+32",145,37 It is easy to list SMS text messages.---- I WANT THE PROGRAM TO GET THE NUMBER "37"{MESSAGE LENGTH} AS WELL AS "1"(MESSAGE INDEX NUMBER" PLEASE HELP
MTNL,
1 2984why we use "include" word before calling the header file. is there any special name for that include??????
TCS,
1 3452while running a program, i got the msg that press return key to exit.what that mean in C as there are no such options as far i know.
TCS,
1 2656please help me.. how to write a code of this output?? "Enter range number:"10 1 is an odd number 2 is an even numbers 3 in an odd numbers 4 " to 10" "printing all odd numbers:" 1,3,5,7,9 "printing all even numbers:" 2,4,6,8,10 "sum of all odd numbers:25 "sum of all even numbers:30 using a C Programming ARRAY pleas pleas help.. its my project ..please :(
1 2588Iam a B.Tech graduate and completed my engineering in 2009, from 2005 to 2009 and after that i had done nothing.Now i want to do job and get into BPO field . Friends give me suggestions as what to say in interview... if they ask me that what would you had done ... these many years without doing job ??????? pls urgent
1405write a program to reverse the words in the sentence.NOTE:not reverse the entire string but just the occurance of each word
1 4080Given a string write a program to print all alphabetical characters in the order of their occurance first,followed by the sum of the numeric characters then followed by the special characters in the order of their occurance.
1 3358
Explain how can I prevent another program from modifying part of a file that I am modifying?
What is data structure in c language?
What is the difference between mpi and openmp?
Is there any data type in c with variable size?
How can I manipulate individual bits?
What is the use of pragma in embedded c?
Where static variables are stored in memory in c?
How can you determine the size of an allocated portion of memory?
What is the difference between a string copy (strcpy) and a memory copy (memcpy)? When should each be used?
Explain what is the difference between far and near ?
How can I get back to the interactive keyboard if stdin is redirected?
Why c is known as a mother language?
What is the right type to use for boolean values in c? Is there a standard type? Should I use #defines or enums for the true and false values?
Why do we need a structure?
Explain how can a program be made to print the line number where an error occurs?