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

Explain with the aid of an example why arrays of structures don’t provide an efficient representation when it comes to adding and deleting records internal to the array.

2902


Who invented bcpl language?

936


Write a C program on Centralized OLTP, Decentralized OLTP using locking mechanism, Semaphore using locking mechanism, Shared memory, message queues, channel of communication, sockets and a simple program on Saving bank application program using OLTP in IPC?

2433


What are the 5 types of inheritance in c ++?

779


Is c a great language, or what?

858


a program that can input number of records and can view it again the record

1698


What is the use of a conditional inclusion statement in C?

844


What is null pointer in c?

764


Write a program to reverse a given number in c language?

861


I just typed in this program, and it is acting strangely. Can you see anything wrong with it?

772


What is quick sort in c?

824


plz let me know how to become a telecom protocol tester. thank you.

1978


all c language question

2176


Read the following data in two different files File A: aaaaaaaadddddddd bbbbbbbbeeeeeeee ccccccccffffffff File B: 11111111 22222222 33333333 By using the above files print the following output or write it in the Other file as follows aaaaaaaa11111111dddddddd bbbbbbbb22222222eeeeeeee cccccccc33333333ffffffffffff

2811


Why structure is used in c?

826