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 5455i 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 3817why we use "include" word before calling the header file. is there any special name for that include??????
TCS,
1 4205while 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 3500please 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 3353Iam 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
1826write a program to reverse the words in the sentence.NOTE:not reverse the entire string but just the occurance of each word
1 4875Given 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 4237
How do you determine whether to use a stream function or a low-level function?
How do you use a pointer to a function?
Can you please compare array with pointer?
how to build a exercise findig min number of e heap with list imlemented?
Explain what would happen to x in this expression: x += 15; (assuming the value of x is 5)
By using C language input a date into it and if it is right?
write a c program thal will find all sequences of length N that produce the sum is Zero, print all possible solutions?
How to throw some light on the b tree?
Write a c program to demonstrate character and string constants?
How to write a code for reverse of string without using string functions?
Can one function call another?
int far *near * p; means
What are linked lists in c?
How do I determine whether a character is numeric, alphabetic, and so on?
Difference between malloc() and calloc() function?