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

Are the expressions * ptr ++ and ++ * ptr same?

889


a formula,a series of steps,or well defined set of rules for solving a problem a) algorithem b) program c) erdiagram d) compiler

879


Where is c used?

853


Linked lists -- can you tell me how to check whether a linked list is circular?

877


What is the function of volatile in c language?

902


What are dangling pointers? How are dangling pointers different from memory leaks?

950


Why is not a pointer null after calling free? How unsafe is it to use (assign, compare) a pointer value after it is been freed?

849


What is the modulus operator?

966


Ow can I insert or delete a line (or record) in the middle of a file?

818


How does selection sort work in c?

835


i have to apply for rbi before that i need to know the the syllabus for the entrance questions. whethet it may be aps or techinical

2127


What are extern variables in c?

783


Create a structure to specify data on students given below: Roll number, Name, Department, Course, Year of joining Assume that there are not more than 450 students in the college. 1.write a function to print names of all students who joined in a particular year 2.write a function to print the data of a student whose roll number is given

2849


What does emoji p mean?

820


Explain what is a 'null pointer assignment' error? Explain what are bus errors, memory faults, and core dumps?

901