input may any number except 1,output will always 1..
conditions only one variable should be declare,don't use
operators,expressions,array,structure
Answers were Sorted based on User's Feedback
Answer / kesavalu
#include<stdio.h>
#include<conio.h>
main()
{
int d;
printf("enter any no except 1");
scanf("%d",&d);
clrscr();
printf("1");
getch();
}
| Is This Answer Correct ? | 9 Yes | 2 No |
Answer / nila
#include<stdio.h>
#include<conio.h>
main()
{
int a;
printf("Enter the number:");
scanf("%d",&a);
printf("1");
getch();
}
| Is This Answer Correct ? | 3 Yes | 1 No |
#include<stdio.h>
main()
{int a;
printf("%d",scanf("%d",&a));
}
| Is This Answer Correct ? | 9 Yes | 8 No |
Answer / 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 |
How do you construct an increment statement or decrement statement in C?
What is an anonymous union and where to apply that ?
What is ponter?
What is a keyword?
Write a program to compute the similarity between two strings - The program should get the two strings as input - Then it will output one single number which is the percentage of similarity between the two strings
a sequence of bytes with one to one corrspondence to those in the external device a) sequential addressing b) address c) byte code d) none
Describe static function with its usage?
Juxtapose the use of override with new. What is shadowing?
Is the below things valid & where it will be stored in memory layout ? static const volatile int i; register struct { } ; static register;
What is the purpose of the following code? Is there any problem with the code? void send(int count, short *to, short *from) { /* count > 0 assumed */ register n = (count + 7) / 8; switch (count % 8) { case 0: do { *to = *from++; case 7: *to = *from++; case 6: *to = *from++; case 5: *to = *from++; case 4: *to = *from++; case 3: *to = *from++; case 2: *to = *from++; case 1: *to = *from++; } while (--n > 0); } }
how can i get the output 54321 4321 321 21 1 in c programming........???? pls help......
How do I copy files?