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
Answers were Sorted based on User's Feedback
Answer / bheemakarna1989
example
input : 4554
output : 1
input :567
output : 1
| Is This Answer Correct ? | 4 Yes | 0 No |
Answer / karna
void main()
{
int n;
printf("%d",scanf("%d",n));
getch();
}
| Is This Answer Correct ? | 2 Yes | 1 No |
Answer / 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 |
Can a variable be both static and volatile in c?
What is the difference between c and python?
the maximum length of a character constant can be a) 1 character b) 8 characters c) 256 chaacters d) 125 characters
How can I list all of the predefined identifiers?
Do you know the difference between exit() and _exit() function in c?
wt is diference between int and int pointer as same as float and float pointer and char and char pointer
What is the output of the following program main();{printf ("chennai""superkings"}; a. Chennai b. superkings c. error d. Chennai superkings
the constant value in the case label is followed by a a) semicolon b) colon c) braces d) none of the above
Write a program to reverse a given number in c?
can anyone please tell me wat is backlogs... i was looking for the job openings where i read this.. eligibility criteria minimum 70% in degree without backlogs. is that arrear.. if so is it standing arrear or history of arrears... please help me...
11 Answers CTS, Indian Navy, L&T, Microsoft, SSB, TCE, TCS,
Find the output? void main() {float a=2.0; printf("\nSize of a ::%d",sizeof(a)); printf("\nSize of 2.0 ::%d",sizeof(2.0));}
11 Answers IBM, TCS,
what is the meaning of java that is (J A V A) full form of JAVA
71 Answers AKS University, Bhel, BNL, BPO, HCL, Peacecon,