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
Given a valid 24 hour format time find the combination of the value and write a program ,do not hard the value and if any other inputs provided should work with the logic implemented Input: 11:30 Output: 13:10 Input: 18:25 Output: 21:58
How can I invoke another program or command and trap its output?
What does void main () mean?
What is the difference between class and object in c?
why wipro wase
How main function is called in c?
What are the primitive data types in c?
How can I avoid the abort, retry, fail messages?
Is c easier than java?
What is the purpose of realloc()?
What does the error message "DGROUP exceeds 64K" mean?
Is swift based on c?
the 'sizeof' operator reported a larger size than the calculated size for a structure type. What could be the reason?
diff between exptected result and requirement?
How do you print only part of a string?