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
What are the 5 elements of structure?
Can a program have two main functions?
The process of repeatedly running a set of computer instructions until some condition is specifed a) condition b) sequential condition c) global d) iteration
Explain what is the benefit of using const for declaring constants?
What do you mean by recursion in c?
What is the use of structure padding in c?
Can we declare a function inside a function in c?
Process by which one bit pattern in to another by bit wise operation is?
Explain what is a 'locale'?
What is the use of static variable in c?
What are the application of void data type in c?
What is the use of a semicolon (;) at the end of every program statement?
What is the difference between variable declaration and variable definition in c?
hi send me sample aptitude papers of cts?
Explain why C language is procedural?