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 / 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 |
Post New Answer View All Answers
Explain how do you declare an array that will hold more than 64kb of data?
Write a program to swap two numbers without using third variable in c?
In which header file is the null macro defined?
What are the header files used in c language?
What is the difference between struct and union in C?
What is the newline escape sequence?
When should you use a type cast?
What is include directive in c?
What is the value of a[3] if integer a[] = {5,4,3,2,1}?
When should the register modifier be used? Does it really help?
How a string is stored in c?
c language supports bitwise operations, why a) 'c' language is system oriented b) 'c' language is problem oriented c) 'c' language is middle level language d) all the above
Explain what is the use of a semicolon (;) at the end of every program statement?
a function gets called when the function name is followed by a a) semicolon (;) b) period(.) c) ! d) none of the above
void main(){ int a; a=1; while(a-->=1) while(a-->=0); printf("%d",a); }