get any number as input except 1 and the output will be
1.without using operators,expressions,array,structure.don't
print 1 in printf statement
Answer Posted / amarnathreddy
i am going to write only logic
n=1000
n1=n-(n-1)
1000-999=1
| Is This Answer Correct ? | 3 Yes | 4 No |
Post New Answer View All Answers
hw can we delete an internal node of binary search tree the internal node has child node..plz write progarm
how to count no of words,characters,lines in a paragraph.
Is printf a keyword?
Which one would you prefer - a macro or a function?
Explain the meaning of keyword 'extern' in a function declaration.
What are the advantages of using new operator as compared to the function malloc ()?
write a program to find the given number is prime or not
An organised method of depicting the use of an area of computer memory used to signify the uses for different parts of the memory a) swap b) extended memory c) memory map d) all of the above
What is function prototype?
What is sizeof in c?
Does c have class?
How can I automatically locate a programs configuration files in the same directory as the executable?
Which operators cannot be overloaded a) Sizeof b) .* c) :: d) all of the above
How can a string be converted to a number?
What is the difference between typedef and #define?