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
How will you delete a node in DLL?
What should malloc(0) do? Return a null pointer or a pointer to 0 bytes?
How to write a code for reverse of string without using string functions?
Write a program to print fibonacci series using recursion?
In a switch statement, what will happen if a break statement is omitted?
Can you return null in c?
What is void pointers in c?
What are high level languages like C and FORTRAN also known as?
Is it cc or c in a letter?
What is the advantage of using #define to declare a constant?
hai iam working in sap sd module for one year and working in lumax ind ltd in desp department but my problem is i have done m.b.a in hr/marketing and working sap sd there is any combination it. can you give right solution of my problem. and what can i do?
Explain modulus operator.
How we can insert comments in a c program?
What is pass by reference in functions?
Explain union. What are its advantages?