input may any number except 1,output will always 1..
conditions only one variable should be declare,don't use
operators,expressions,array,structure
Answer Posted / dana
#include<stdio.h>
#include<conio.h>
main()
{
int x;
printf{"enter the num ",x);
scanf("%d",&x);
if(x!=1)
printf("1");
else
printf(" ");
}
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Describe the order of precedence with regards to operators in C.
Can a pointer point to null?
What are the application of void data type in c?
How do I read the arrow keys? What about function keys?
What is a header file?
Is it cc or c in a letter?
"C" language developed by "Dennis Ritchie" at AT & T. his remarks are a) too general, too abstract b) could deal with only specific problems c) lost generality of BCPL and B restored d) no remarks
How are structure passing and returning implemented?
How can I call fortran?
What is pass by reference in functions?
What is "Duff's Device"?
Explain how do you generate random numbers in c?
What are the different categories of functions in c?
How can you read a directory in a C program?
What is the difference between exit() and _exit() function?