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


Please Help Members By Posting Answers For Below Questions

What are header files? What are their uses?

642


Explain how can I avoid the abort, retry, fail messages?

594


Why doesnt long int work?

615


Explain the difference between exit() and _exit() function?

638


What is the difference between exit() and _exit() function?

610






Which is best linux os?

567


Why c is called a middle level language?

635


all c language question

1878


What does it mean when a pointer is used in an if statement?

606


Tell us the use of fflush() function in c language?

643


Why does everyone say not to use gets?

612


What is the benefit of using const for declaring constants?

592


Write a program to print fibonacci series using recursion?

590


In the DOS enveronment, normal RAM that resides beyond the 1mb mark. a) expanded memory b) swapped memory c) Extended memory d) none

726


What is the difference between ā€˜gā€™ and ā€œgā€ in C?

2592