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


Please Help Members By Posting Answers For Below Questions

How will you delete a node in DLL?

688


What should malloc(0) do? Return a null pointer or a pointer to 0 bytes?

595


How to write a code for reverse of string without using string functions?

1583


Write a program to print fibonacci series using recursion?

591


In a switch statement, what will happen if a break statement is omitted?

606






Can you return null in c?

601


What is void pointers in c?

596


What are high level languages like C and FORTRAN also known as?

691


Is it cc or c in a letter?

574


What is the advantage of using #define to declare a constant?

625


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?

1667


Explain modulus operator.

601


How we can insert comments in a c program?

636


What is pass by reference in functions?

327


Explain union. What are its advantages?

621