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
What are the back slash character constants or escape sequence charactersavailable in c?
differentiate built-in functions and user – defined functions.
What is the difference between array and pointer?
What is difference between %d and %i in c?
Explain what does it mean when a pointer is used in an if statement?
What is getche() function?
What do the functions atoi(), itoa() and gcvt() do?
If i have an array 0 to 99 i.e,(Size 100) I place the values 1 to 100 randomly like a[0]=29,a[1]=56 upto array[99].. the values are only between 1 to 100. getting the array values by using scanf.. If i entered one wrong element value line a[56]=108. how can i find it.. and also how to find the missing value in 1 to 100.. and i want to replace the missing values.. any one of them know please post your answer..
Can the “if” function be used in comparing strings?
What is null in c?
Explain void pointer?
What are local static variables? How can you use them?
What is context in c?
List the variables are used for writing doubly linked list program.
What is the deal on sprintf_s return value?