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 are the different flags in C? And how they are useful? And give example for each in different consequences?
program for validity of triangle from 3 side
What is a structural principle?
2. What is the function of ceil(X) defined in math.h do? A)It returns the value rounded down to the next lower integer B)it returns the value rounded up to the next higher integer C)the Next Higher Value D)the next lower value
What are pointers in C? Give an example where to illustrate their significance.
What is %d called in c?
What is a substring in c?
Write a C program to print 1 2 3 ... 100 without using loops?
main() { int i = 10; printf(" %d %d %d \n", ++i, i++, ++i); }
Write a small C program to determine whether a machine's type is little-endian or big-endian.
write a program to display the frequency of each element in a given array in c language
Given a single Linked list with lakhs of nodes and length unknown how do you optimally delete the nth element from the list?