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 |
Is a house a shell structure?
How does C++ help with the tradeoff of safety vs. usability?
in multiple branching construct "default" case is a) optional b) compulsarily c) it is not include in this construct d) none of the above
why array index always starts from zero??
What is putchar() function?
Ow can I insert or delete a line (or record) in the middle of a file?
write a c program to calculate the income tax of the employees in an organization where the conditions are given as. (I.T. = 0 if income <100000 I.T = 10% if income _< 200000 it = 20% if income >_ 200000)
7 Answers Consultancy, DBU, FD, JK Associates, Kobe, Satyam,
How to explain the final year project as a fresher please answer with sample project
Write a c program to demonstrate character and string constants?
Without using main fn and semicolon,print remainder for a given number in C language
What is the difference between new and malloc functions?
Explain how can I right-justify a string?