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 |
What is the difference between malloc() and calloc() function in c language?
pgm in c to reverse string by word using array(god is love becomes love is god) (no additional array can used,space is only delimiter between words )
What does the error 'Null Pointer Assignment' mean and what causes this error?
Why header file is used in c?
Is fortran still used in 2018?
main() { int a; a=++100; printf("%d",a); getch(); }
How to convert decimal to binary in C using recursion??
How can a process change an environment variable in its caller?
#include<stdio.h> { printf("Hello"); } how compile time affects when we add additional header file <conio.h>.
write a program that eliminates the value of mathematical constant e by using the formula e=1+1/1!+1/2!+1/3!+
Give basis knowledge of web designing ...
write the program for maximum of the following numbers? 122,198,290,71,143,325,98