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
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.
Who invented bcpl language?
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?
What are the 5 types of inheritance in c ++?
Is c a great language, or what?
a program that can input number of records and can view it again the record
What is the use of a conditional inclusion statement in C?
What is null pointer in c?
Write a program to reverse a given number in c language?
I just typed in this program, and it is acting strangely. Can you see anything wrong with it?
What is quick sort in c?
plz let me know how to become a telecom protocol tester. thank you.
all c language question
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
Why structure is used in c?