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 directives in c?
What are pointers really good for, anyway?
What is the use of #define preprocessor in c?
When should you use a type cast?
Is using exit() the same as using return?
What does %d do in c?
Where define directive used?
void main(){ int a; a=1; while(a-->=1) while(a-->=0); printf("%d",a); }
What are identifiers c?
write a programe to accept any two number and check the following condition using goto state ment.if a>b,print a & find whether it is even or odd and then print.and a
4-Take two sets of 5 numbers from user in two arrays. Sort array 1 in ascending and array 2 in descending order. Perform sorting by passing array to a function mySort(array, sortingOrder). Then multiply both the arrays returned from function, using metric multiplication technique in main. Print result in metric format.
What is pointer to pointer in c with example?
What is an arrays?
When I tried to go into a security sites I am denied access and a message appeared saying 'applet not initialize'. How can I rectify this problem.
What does s c mean in text?